随笔 - 216  文章 - 0 评论 - 2 阅读 - 24万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

  1. Beautiful is better than ugly.   # 优美好于丑陋(Python以编写优美的代码为目标)
  2. Explicit is better than implicit.   # 明确好于暗示
  3. Simple is better than complex.   # 简洁好于复杂
  4. Complex is better than complicated.   # 复杂好于凌乱
  5. Flat is better than nested.   # 扁平好于嵌套
  6. Sparse is better than dense.   # 间隔好于密集
  7. Readability counts.   # 可读性很有价值
  8. Special cases aren't special enough to break the rules.   # 特殊情况不足以打破规则
  9. Although practicality beats purity.   # 尽管实用性胜过纯粹性
  10. Errors should never pass silently.   # 错误不应该悄无声息地过去
  11. Unless explicitly silenced.   # 除非显示指定要这么做
  12. In the face of ambiguity, refuse the temptation to guess.   # 面对模棱两可,拒绝猜测的诱惑
  13. There should be one -- and preferably only one -- obvious way to do it.   # 应该有一种 -- 而且最好只有一种 -- 明确的方法来完成它
  14. Although that way may not be obvious at first unless you're Dutch.   # 虽然那种方法一开始可能并不明显,除非你是 Dutch(Python 之父)
  15. Now is better than never.   # 现在做好于永远不做
  16. Although never is often better than *right* now.   # 尽管不思考盲目动手做通常还不如不做
  17. If the implementation is hard to explain, it's a bad idea.   # 如果方案很难向人描述,那肯定是一个坏方案
  18. If the implementation is easy to explain, it may be a good idea.   # 如果方案容易向人描述,那可能一个好方案
  19. Namespaces are one honking great idea -- let's do more of those!   # 命名空间是个绝妙的主意,让我们做更多这样的事

 注:在 Python 的交互式解释器中输入 import this 就可以查阅到上述文档。

 

posted on   青叶煮酒  阅读(192)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 通过 API 将Deepseek响应流式内容输出到前端
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示