Python
介绍
Python 是一门易于学习、功能强大的编程语言。它提供了高效的高级数据结构,还能简单有效地面向对象编程。Python 优雅的语法和动态类型以及解释型语言的本质,使它成为多数平台上写脚本和快速开发应用的理想语言。
特点
- 语法简洁,代码可读性强,易于学习
- 功能强大,支持多种编程范式( 结构化编程,面向对象编程,函数式编程,元编程 )
- 丰富的内置函数和模块
- 易于扩展(扩展和嵌入 Python 解释器)
- 具有活跃的社区和强大的生态
应用
- 编写服务端脚本和命令行程序( Click,Typer )
- 运维/DevOps(Ansible)
- 爬虫(Requests,Playwright,Scrapy )
- 大数据/机器学习( Numpy,Pandas,Tensorflow,Pytorch )
- 后端服务开发( Flask,Django,FastAPI )
- 客户端应用程序开发(PyQT5)
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!
语言特性
第三方库
虚拟环境
并发
资源
Python
Children
- Ansible
- Asyncio
- Click
- Django
- FastAPI
- Flask
- Gevent
- Multithreading
- Mypy
- Numpy
- Pandas
- Pip
- Pipenv
- Playwright
- Poetry
- PyQT5
- Pydantic
- Pytorch
- Requests
- Scrapy
- Tensorflow
- Type Hints
- Typer
- Venv
- Zen of Python
- 上下文管理器
- 内置函数
- 内置类型
- 列表(字典, 集合)推导式
- 标准库模块
- 生成器
- 结构化模式匹配
- 装饰器
- 迭代器
Backlinks