irainy
V2EX  ›  Python

PyTips everyday.

By irainy at 2016 年 3 月 8 日 · 2541 次点击

Python Tips

每天一条有用的 Python 小提示

每天花费不到两分钟,学习一条可以提高 Python 代码质量,更 Pythonic 的方法解决问题的小技巧。

主要基于 Python 3.5 并尽量做到向后兼容(至 Python 2.7 )。


计划每天写一条,先写满 0x00 ~ 0xFF 再说。
每天花大概 1 ~ 2 个小时来写,欢迎大家关注·监督·支持!
比较难的是每天找到一个合适的话题、问题或者场景,所以希望大家可以提供任何值得分享的问题、经验!

https://github.com/rainyear/pytips

2 条回复  •  2016-03-08 20:59:03 +08:00
bdbai
   1
bdbai  
   2016 年 3 月 8 日 via iPhone
做一个像 fortune 那种的怎么样?
irainy
   2
irainy  
OP
   2016 年 3 月 8 日
@bdbai fortune 命令吗?那得多短啊
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
© 2026 V2EX · 45ms · 3.9.8.5