问答详情
源自:-

用python3.8用什么语法实现命令行运行py脚本呀

D:\python_3x>python hello_world.py

  File "hello_world.py", line 1

    Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32

           ^

SyntaxError: invalid syntax

出现了这样问题,想问问大佬们咋解决

提问者:Peacelake 2020-02-22 15:15

个回答

  • WE_Xing
    2020-02-25 15:35:23

    你这是32位和64位影响的吧

  • WE_Xing
    2020-02-25 15:33:50

    shell里面一般都是python 文件名.py

    如果你python2和3都有的话,要加python3 文件名.py

    另外你要确定你的文件在这个路径上