的Python 2.7Powershell的语法错误(Python 2.7版)
当我尝试和执行一个Python脚本,我得到一个无效的语法错误。
powershell.exe 'c:\pythonscripts\ex1.py'
File "<stdin>", line 1
powershell.exe 'c:\pythonscripts\ex1.py'
^
我知道它的工作原理,因为我只是用这个命令执行一个文件。 为的.py代码
print "Hello World!"
print "Hello Again"
print "I like typing this."
print "This is fun."
print 'Yay! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.
的Python 2.7
你在最后一个打印语句后缺少''',或者这是格式化你的问题的错误 – TerryA 2013-03-03 00:57:57
谢谢:)这是错误的... ... Derp我大声笑。现在我只需要弄清楚如何暂停....再次感谢:) – user2127874 2013-03-03 01:03:24