首页 > 编程语言 > 详细

Python 2.7.8 学习笔记(001)python manuals/the python tutorial -- 2. Using the Python Interpreter

时间:2016-03-03 01:34:33      阅读:243      评论:0      收藏:0      [点我收藏+]

添加c:\python27到环境变量path

python -c command [arg] ...

python -m module [arg] ...

 参数传递:the argv variable in the sys module

>>>    //交互模式

用缩进表示语句块,可真不习惯

>>> the_world_is_flat = 1
>>> if the_world_is_flat:
...     print "Be careful not to fall off!"
...
Be careful not to fall off!

print语句前的缩进不可少

 

Python 2.7.8 学习笔记(001)python manuals/the python tutorial -- 2. Using the Python Interpreter

原文:http://www.cnblogs.com/argent/p/5237107.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!