Python编程入门优质课件.pptx
文本预览下载声明
Python编程入门;python之父;为什么使用python;环境搭建;运行Python;一、python注释;二、python数据类型;三、python条件控制; 四、python循环语句; 四、python循环语句;五、python迭代器 ;六、python函数 --语法;六、python函数 --参数传递;六、python函数 --匿名函数;七、python异常;七、python异常;八、python面向对象;九、python模块;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 not be obvious at first unless you’re Dutch. 尽管这种方式在开始的时候可能并不明显,因为你不是python之父。
Now is better than never. 做比不做好,
Although never is often better than *right* now. 但是不做好于不假思索的做。
If the implementation is hard to explain, it’s a bad idea. 如果实现方式很难解释清楚,那
If If the implementation is easy to explain, it may be a good idea. 么这不是一个好方案。反之亦然
Namespaces are one honking great idea — let’s do more of those! 命名空间就是一个绝妙的想法 — 我们应当多加利用!;备用工具资料;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.
显示全部