
python
文章平均质量分 78
「已注销」
这个作者很懒,什么都没留下…
展开
-
Rapid GUI Programming with Python and Qt第二章习题答案加注释
2.1def valid(text, chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"): result = [] for char in text: if char in chars: result.append(char) # append() : 在List末尾添加元原创 2016-06-28 11:18:20 · 631 阅读 · 0 评论 -
Zen of Python
The Zen of Python, by Tim PetersBeautiful is better than ugly.# 优美胜于丑陋(Python以编写优美的代码为目标)Explicit is better than implicit.# 明了胜于晦涩(优美的代码应当是明了的,命名规范,风格相似)Simple is better than complex.# 简洁胜于复杂转载 2016-07-14 16:41:18 · 423 阅读 · 0 评论