
python
fjnjxr
这个作者很懒,什么都没留下…
展开
-
can't open file 'C:/Users/Harrison Wang/PycharmProjects/untitled/venv/study,py': [Errno 2] No such f
初学python,今天遇到起卦的问题,特此记录。有个学习文件,之前命名为study,py,今天发现怎么这么别扭,原来是把.写成了逗号,赶紧改文件名为stufy.py.然后运行,what?竟然报错了。大概提示如下:can't open file 'C:/Users/Harrison Wang/PycharmProjects/untitled/venv/study,py': [Er...原创 2019-07-11 10:23:45 · 7836 阅读 · 2 评论 -
第一个Python程序hello.py提示出现File "<stdin>",line 1错误
写第一个Python程序hello.py,内容仅有一句,print 'hello world',运行 python hello.py 出错,提示:File "<stdin>" , line 1python hello.pySyntaxError:invalid syntax原因: 在shell脚本中,运行shell脚本命令;在Python命令行中,...转载 2019-07-11 13:31:55 · 4416 阅读 · 0 评论 -
python: can't open file 'h.py': [Errno 2] No such file or directory
这是在写第一个程序时就遇到的问题:python: can't open file 'h.py': [Errno 2] No such file or directory我建了一个文件夹,命名为“Python Files”,计划存储所有用Python编写的程序。第一个程序写的是hello world。文件名为hello.py和hello.txt可是按照视频操作了好几遍,都会出现...转载 2019-07-11 13:33:20 · 20849 阅读 · 2 评论