无法从cmd行运行Python
发布于 2021-01-29 14:55:57
我是编程(和Python)新手。我无法在WinXP 64位笔记本电脑的命令提示符下运行任何python脚本。我分配了路径并通过输入set
path确认了。我有Python32。我收到以下消息:
>>>python hello.py
File <”stdin”> , Line1
Python hello.py
^
SyntaxError: Invalid syntax
以下是我尝试的脚本:
#!/usr/bin/python
message = "Hello, world!"
print(message)
关注者
0
被浏览
108