码迷,mamicode.com
首页 > 编程语言 > 详细

Python-学习笔记(1)

时间:2016-01-11 11:48:27      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

Python简介

Python官方的介绍是:

Python是一种简单易学,功能强大的编程语言,它有高效率的高层数据结构,简单而有效地实现面向对象编程。Python简洁的语法和对动态输入的支持,再加上解释性语言的本质,使得它在大多数平台上的许多领域都是一个理想的脚本语言,特别适用于快速的应用程序开发。

  • 创始人:吉多·范罗苏姆(Guido van Rossum),荷兰人。人称“龟叔”
  • 名称来源:龟叔是BBC电视剧——蒙提·派森的飞行马戏团(Monty Python‘s Flying Circus)的爱好者
  • 创造初衷:龟叔想设计一种基于C和shell之间、功能全面、易学易用、可拓展的语言。
  • 设计哲学:“优雅”、“明确”、“简单”
  • 开发哲学:“用一种方法,最好是只有一种方法来做一件事”
  • 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 arent 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 youre Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, its a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- lets do more of those!

Python-学习笔记(1)

标签:

原文地址:http://www.cnblogs.com/fujiangong/p/5119729.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!