首页  

Python 英语单词和术语     所属分类 python 浏览量 8
Python 英语单词和术语

一、基础术语
Python - 蟒蛇,也是一种编程语言的名字。
Program - 程序
Code - 代码
Syntax - 语法
Variable - 变量
Value - 值
Type - 类型
Integer (int) - 整数
Float - 浮点数
String (str) - 字符串
Boolean (bool) - 布尔值(True或False)
List - 列表
Tuple - 元组
Dictionary (dict) - 字典
Set - 集合
Operator - 运算符
Expression - 表达式
Statement - 语句
Comment - 注释
Indentation - 缩进

二、控制流
Conditional - 条件
If - 如果
Else - 否则
Elif - 否则如果
Loop - 循环
For - 循环关键字
While - 当...时
Break - 跳出循环
Continue - 继续下一轮循环
Pass - 空语句,占位

三、函数
Function - 函数
Def - 定义函数的关键字
Parameter - 参数(形式参数)
Argument - 参数(实际参数)
Return - 返回
Call - 调用
Scope - 作用域
Local - 局部的
Global - 全局的
Lambda - 匿名函数
Recursion - 递归

四、数据结构
Data Structure - 数据结构
Array - 数组(在Python中常用list)
Index - 索引
Slice - 切片
Key - 键(字典中)
Value - 值(字典中)
Item - 项(如字典中的键值对)
Element - 元素
Mutable - 可变的
Immutable - 不可变的

五、面向对象编程
Object - 对象
Class - 类
Instance - 实例
Method - 方法
Attribute - 属性
Inheritance - 继承
Polymorphism - 多态
Encapsulation - 封装
Constructor - 构造函数(__init__)
Self - 实例自身

六、文件操作
File - 文件
Open - 打开
Close - 关闭
Read - 读
Write - 写
Append - 追加
Text - 文本
Binary - 二进制
Directory - 目录
Path - 路径

七、异常处理
Exception - 异常
Error - 错误
Try - 尝试
Except - 除了(捕获异常)
Finally - 最终(无论是否异常都执行)
Raise - 抛出异常

八、模块和包
Module - 模块
Package - 包
Import - 导入
From - 从...导入
As - 别名
Standard Library - 标准库

九、其他常用
Debug - 调试
Test - 测试
Algorithm - 算法
API - 应用程序接口
Library - 库
Framework - 框架
Script - 脚本
Interactive - 交互式的
Compiler - 编译器(Python是解释型,但有时会用到)
Interpreter - 解释器

十、常见函数名和模块名
print - 打印
input - 输入
len - 长度
range - 范围
sum - 求和
max - 最大值
min - 最小值
sorted - 排序
abs - 绝对值
type - 类型
isinstance - 判断实例
os - 操作系统模块
sys - 系统模块
math - 数学模块
random - 随机模块

上一篇    
正确的写字姿势 握笔姿势 及其重要性

《用AI赚钱》笔记

威科夫价格循环与操盘法