博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Zen of Python
阅读量:6976 次
发布时间:2019-06-27

本文共 1055 字,大约阅读时间需要 3 分钟。

Zen of Python

$ pythonPython 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import this

The Zen of Python, by Tim Peters

  1. Beautiful is better than ugly.
  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.
  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!

转载地址:http://cxupl.baihongyu.com/

你可能感兴趣的文章
pyramid参数
查看>>
struts2请求处理过程源代码分析(1)
查看>>
java中的char类型
查看>>
Windows XP下,JDK环境变量配置
查看>>
RabbitMQ (四) 路由选择 (Routing)
查看>>
关于ExtJS在使用下拉列表框的二级联动获取数据
查看>>
SPRING3.X JSON 406 和 中文乱码问题
查看>>
多个class相同的input标签 获取当前值!方法!
查看>>
模板方法模式与策略模式的区别
查看>>
html5地理定位数据
查看>>
《JAVA-枚举》
查看>>
使用photoshop 10.0制作符合社保要求的照片
查看>>
Python下使用tarfile模块来实现文件归档压缩与解压
查看>>
思科交换机各类型中字母的意思?
查看>>
linux基础命令
查看>>
我的友情链接
查看>>
Nutanix CE on Lenovo W520 初探
查看>>
make执行过程
查看>>
Ansible源码解析 Inventory组概念
查看>>
数据备份学习
查看>>