当前位置: 移动技术网 > IT编程>脚本编程>Python > python入门(一)

python入门(一)

2018年03月24日  | 移动技术网IT编程  | 我要评论

楼上的外星人下载,艳修少爷txt,白俄罗斯的首都

一、python安装环境和基础

1.python的优势
python的最大优势在于它的字符串模式匹配能力,提供一个非常强大的正则表达式匹配引擎,核心实现依赖于pert,但语法比pert更加易懂。python具有可扩展、移植性强、面向对象、语法清晰、易维护等特点。

在搭建好python环境的情况下,在终端输入python就可以进入到python的解释器中输入“import this”就可以看到python的哲学。

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!

2.python的家族

c语言实现 ,Cpython,扩展可用c/c++ java实现,Jpython,扩展可用java .NET,IfonPython,扩展可用c#

3.python能干什么?

科学计算–支持小数点后面无数位 图形化开发 系统脚本 web服务器 网络爬虫 服务器集群自动化运营
4.python开发环境 ipython(推荐) eclipse+pydev插件 sublime text3—–ctrl+B运行代码

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网