Python概念:是一门易于学习、功能强大的编程语言,高效率、能简单又有效地实现面向对象编程,简洁的语法与动态输入特性,解释性语言的本质,在多种领域与与绝大多数平台都能进行脚本编写与应用快速开发工作。
创始人:Guido von Rossum(吉多·范罗苏姆)
,尊称龟叔,1989年诞生,基于abc语言开发,英语名称意为
蟒蛇
。
Java:1991年开发,由Sun团队开发维护。
Python特点:
简单、易于学习、自由且开放、跨平台、可嵌入性、丰富的库
。
可嵌入性:可以在其他语言如C、C++中嵌入Python脚本。
口号:人生苦短,我用Python!
Life is short, I use Python!
二、Python语言的发展及应用
1.常规的软件开发
Android:Java -> Kotlin
iOS:OC -> Swift
2.科学计算
绘制2D、3D图像
3.自动化运维
4.云计算
5.WEB开发
Djongo、Flask、Tornado等框架。
6.网络爬虫开发
scrapy爬虫框架
7.数据分析
8.人工智能
机器学习、神经网络、深度学习…
※※
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.
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 the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea – let’s do more of those!