欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

python入门(一)

程序员文章站 2023-02-27 14:46:44
一、python安装环境和基础 1.python的优势 python的最大优势在于它的字符串模式匹配能力,提供一个非常强大的正则表达式匹配引擎,核心实现依赖于pert,但语法比...

一、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运行代码