改善Python程序建议
pep8规范
常量集中到一个文件
BOM
with
异常处理
str和repr区别
staticmethod和classmethod
counter
traceback栈信息
counter
ConfigParser
argparse
pandas
ElementTree
pickle和json
tracelog
threading多线程
mixin混入设计模型
message发布订阅
__getattr__
lsof
状态模式转换
build_in
property
metaclass
python对象协议
迭代器、生成器
协程及greenlet
对象管理与垃圾回收
paster创建包
单元测试
为包编写单元测试
测试驱动开发提高代码可测性
使用pylint检查代码风格
cprofile定位性能瓶颈
使用memroy_profiler和objgraph剖析内存
降低算法复杂度
循环优化基本技巧
使用生成器提高效率
使用不同的数据结构优化性能
充分利用set的优势
使用multiprocessing克服GIL缺陷
使用线程池提高效率
with
Powered by
GitBook
pep8规范
results matching "
"
No results matching "
"