蟒蛇 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.
蟒蛇 2.7