博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年10月27日

摘要: pyc:二进制文件,python文件经过编译器编译之后的文件。可以提高文件加载速度。 pyo:二进制文件,优化编译后的文件。可以通过`python -O file.py`生成。 pyd:python的动态链接库。 阅读全文

posted @ 2017-10-27 11:39 开飞机的贝塔 阅读(1689) 评论(0) 推荐(0) 编辑

摘要: 定义:`yum`的命令行接口。 Run the yum program from a command line interface. Profile the given function using the hotshot profiler. Profile the given function u 阅读全文

posted @ 2017-10-27 11:24 开飞机的贝塔 阅读(340) 评论(0) 推荐(0) 编辑

摘要: 定义:将值打印到一个流对象,或者默认打印到sys.stdout。 语法: 参数说明: file:一个类文件对象(流);默认为sys.out。 sep:插入到值之间的字符串,默认为空格。 end:值末尾的字符串,默认为换行。 flush:是否刷新流,默认不刷新。 例子: 拓展: 在py2中,`prin 阅读全文

posted @ 2017-10-27 11:01 开飞机的贝塔 阅读(332) 评论(0) 推荐(0) 编辑