python补充

时间:2014-05-19 17:02:49   收藏:0   阅读:322

python:“蟒蛇”
import py_compile :编译模块,
生成pyc文件,或者pyo文件;
python -o -m py_compile hello.py

python 补充:
运算符:in/not in,成员测试,
is/not is,同一性测试,

三重引号(docstring)的作用:
1、用来制作字符串,
2、注释
3、doc数据文档;
单引号,双引号区别:(嵌套)
say = ‘let‘s go‘ #error
say = "let‘s go " #right
say = "let‘s \"go\" "

python补充,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!