![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
sherry_0009
这个作者很懒,什么都没留下…
展开
-
Python 2.7: no documentation found when typing help('print')
原文转自http://askubuntu.com/questions/230994/python-2-7-no-documentation-found-when-typing-helpprint I have just installed Python 2.7 and Python 3.2 on my Ubuntu 12.04 (32 bit). sudo apt-get install转载 2013-09-29 19:26:27 · 6668 阅读 · 0 评论 -
Python 3.2.3 print 出现SyntaxError: invalid syntax
原文转自 http://blog.csdn.net/ei__nino/article/details/8156628 很简单,不知道为啥,据说是3.0以后的print都改为了print(); 原来的代码 [python] view plaincopyprint? >>> print 'hello world' SyntaxError: invalid syntax转载 2013-09-29 15:56:16 · 782 阅读 · 0 评论 -
Python学习笔记之中文注释
原文转自 http://blog.csdn.net/hinyunsin/article/details/6310469 通常,python源代码必须完全由ASCII集合组成,如果直接在python中添加中文注释的时候,python执行时会引发异常,告知非ASCII字符语法错误。 SyntaxError: Non-ASCII character '/xd5' in file D:转载 2013-09-30 15:41:44 · 504 阅读 · 0 评论 -
python学习笔记之sys.argv
sys.argv是你接收的参数的列表 [] 比如你这段代码名字叫做test.py 运行python test.py 192.168.0.1 test.txt sys.argv[0] ----test.py sys.argv[1] ----192.168.0.1 sys.argv[2] ----test.txt原创 2013-10-01 17:09:18 · 575 阅读 · 0 评论