![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
脚本语言
scorpiomiracle
要永远充满阳光
展开
-
写了一个hello.py,运行出错,提示 File "<stdin>" , line 1
写了一个hello.py,仅有一句,print 'hello world',运行 python hello.py 出错,提示:File "" , line 1python hello.py解释:In the shell you can run shell commands, in the Python command line you can run Python co原创 2012-12-12 11:53:42 · 39711 阅读 · 5 评论 -
Python初学笔记——琐碎知识,based on 2.7.3,持续更新中
--以下内容基本完全来源于 google 开发人员 教学材料,https://developers.google.com/edu/python?hl=zh-CN--Python Set Up and Introduction1,语句以断行结束,不推荐“;”结束,尽管“;”是可以的。2,#表示注释,从标识位置开始一直到段末。3,语句块不以花括号表示,使原创 2012-12-15 17:01:42 · 1147 阅读 · 0 评论