当前位置:   article > 正文

Python代码规范及micro:bit小试_pycharm microbit

pycharm microbit

Python代码规范

小引:

import this
导入此
The Zen of Python, by Tim Peters
《蟒蛇禅》,提姆·彼得斯著

Beautiful is better than ugly.
美胜于丑。
Explicit is better than implicit.
显式优于隐式。
Simple is better than complex.
简单胜于复杂。
Complex is better than complicated.
复杂总比复杂好。
Flat is better than nested.
平的比嵌套的好。
Sparse is better than dense.
稀疏胜于稠密。
Readability counts.
可读性计数。
Special cases aren’t special enough to break the rules.
特殊情况不足以打破规则。
Although practicality beats purity.
尽管实用性胜过纯洁性。
Errors should never pass silently.
错误永远不会悄悄地过去。
Unless explicitly silenced.
除非明确沉默。
In the face of ambiguity, refuse the temptation to guess.
面对歧义,拒绝猜测的诱惑。
There should be one-- and preferably only one --obvious way to do it.
应该有一种——最好只有一种——显而易见的方法来做到这一点。
Although that way may n

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/295323?site
推荐阅读
相关标签
  

闽ICP备14008679号