Python3.5安装后的第一个错误File "", line 1
小白第一开始学习Python,第一个项目就错了,写一篇纪念一下哈哈哈哈
查阅资料原因很简单:
新建了一个hello.py文件在D:/python/test下
使用C:\Program Files\Python35安装好的python.exe应用程序运行命令:
"C:\ProgramFiles\Python35\python.exe" D:/python/test/hello.py是运行不出来的啦!!!!!!!
"C:\ProgramFiles\Python35\python.exe" D:/python/test/hello.py这句命令应该使用Win+R 打开cmd运行,
cmd是无法直接运行python语句的,而python.exe是可以直接运行python语句的: