💡关于 Python

Python 是一个 object-oriented(面向对象), interpreted(解释型), interactive(交互式)的编程语言。

Python 有 modules(模块), classes(类), exceptions(异常), dynamic data types(动态数据类型)和 dynamic typing(动态类型)。

它还有很多 system calls(系统调用)和 libraries(库)的接口,以及各种窗口系统的接口。新的 built-in modules 可以用 C 或 C++(或其它语言,取决于所选实现)轻松编写。

Applications

入门

  • whitespace 和 indents 很重要:Python 使用空格表示 end-of-line 和 code blocks

  • Style Guide for Python Code:样式指南,Python PEP 8 是一本主要由 Guido 编写的风格指南

    • PEP,Python Enhancement Proposal

  • Thinking in Python

在线文档

说明
  • 使用 Python Interpreter

  • 控制流:if, for, range, break, continue, match 等

  • 数据结构:list, dict, set, 元组和序列等

  • modules

  • input 和 output

  • errors 和 exceptions

  • class

  • Standard Library

  • 虚拟环境和 package

  • 内置函数、常量、类型、异常

  • 文本处理、二进制处理

  • 数据类型

  • Numeric 和 Mathematical(数字和数学)

  • 函数式编程

  • 文件和目录访问

  • 数据持久化

  • 数据压缩和归档、文件格式、加密

  • 通用操作系统服务

  • 并发执行

  • 网络和进程间通信

  • 互联网数据处理

  • 结构化标记处理工具:HTML、XML

  • 互联网协议

  • 开发工具:类型提示、单元测试等

  • 调试和分析

  • Python 运行时服务

  • 词法分析

  • Data 模型

  • Execution 模型

  • Import 系统

  • Expressions(表达式)

  • Statements:简单语句、复合语句

  • Top-level components(顶级组件)

  • 命令行与环境

  • 配置 Python

  • 在 Unix 上使用 Python

  • 在 Mac 上使用 Python

  • 在 Windows 上使用 Python

  • 编辑器和 IDE

  • 函数式编程

  • 套接字编程

  • 日志记录方法、日志手册

  • 排序

  • urllib 包

  • ipaddress 模块

第三方 modules 和 PyPI.org

扩展和内嵌 Python 的 C API

针对 C/C++ programmers

  • 常规 Python 问题

  • Programming 相关

  • Design 和 History 相关

  • Library 和 Extension 相关

  • Extending/Embedding 相关

  • Python on Windows 相关

  • Graphic User Interface 相关

为 Python 做出贡献

https://devguide.python.org/

Last updated