学习python必须背的常见单词

函数 作用
一、交互式环境与print输出
1、print: 打印/输出
2、coding: 编码
3、syntax: 语法
4、error: 错误
5、invalid: 无效
6、identifier: 名称/标识符
7、character : 字符
二、字符串的操作
1、user: 用户
2、name: 姓名/名称
3、attribute: 字段/属性
4、value:
5、key:
三、重复/转换/替换/原始字符串
1、upper: 上面
2、lower: 下面
3、capitalize: 用大写字母写或印刷
4、title: 标题
5、replace: 替换
6、old: 旧的
7、new: 新的
8、count: 计数
9、swap: 互换
10、case: 情形
11、path: 路径
12、new: 新的\新建
13、project: 项目
14、test: 测试
15、file: 文件
16、data: 数据
四、去除/查询/计数
1、strip: 去除
2、index: 索引
3、find: 查找
4、count: 计数
5、start: 开始
6、end: 结束
7、chars: 字符
8、sub: 附属
五、获取输入/格式化
1、input: 输入
2、prompt: 提示
3、ID: 身份证
4、format: 格式化
5、args(argument): 参数
6、kwargs: 关键字参数
7、year:
8、month:
9、day:
六、元组
1、tuple: 元组
2、max: 最大
3、min: 最小
4、iterable: 可迭代
5、key: 关键字
6、function: 方法/函数
7、stop: 停止
8、object: 对象
七、列表
1、list: 列表
2、reverse: 反向
3、true:
4、false:
5、append: 附加
6、extend: 扩展
7、insert: 插入
8、pop: 取出
9、remove: 移除
10、del(delete): 删除
11、clear: 清除
12、sort: 排序
八、集合
1、set: 集合/设置
2、add: 添加
3、update: 更新
4、discard: 丢弃
5、intersection: 相交
6、union: 联合
7、difference: 差数
8、symmetric: 对称
9、in: 在…里面
10、not: 不/不是
11、disjoint: 不相交
12、subset: 子集
13、superset: 父集/超集
14、copy: 复制
九、字典
1、dict: 字典
2、key: 键/关键字
3、value:
4、item:
5、mapping: 映射
6、seq(sequence): 序列
7、from: 从/来自
8、get: 获取
9、default: 默认
10、none: 没有
11、arg: 可变元素
12、kwargs(keyword args): 可变关键字元素
十、循环
1、for…in… 循环的使用
2、while… 循环的使用
3、range: 范围
4、sep(separate): 分隔
5、flush: 冲刷
6、step: 步长
7、continue: 继续
8、break: 突破/跳出
十一、条件/跳出与结束循环
1、if: 如果
2、else: 否则
十二、运算符与随机数
1、module: 模块
2、sys(system): 系统
3、path: 路径
4、import: 导入
5、from: 从…
十三、定义函数与设定参数
1、birthday: 出生日期
2、year: 年份
3、month: 月份
4、day: 日期
5、type: 类型
6、error: 错误
7、missing: 丢失
8、required: 必须
9、positional: 位置
10、unsupported: 不支持
十四、设定收集参数
1、create: 创建
2、info: 信息
3、age: 年龄
4、height: 高度
5、width: 宽度
6、weight: 重量
7、splicing: 拼接
8、params: 参数
9、volume: 体积
11、operand: 操作数
十五、嵌套函数/作用域/闭包
1、inside: 内部
2、outside: 外部
3、radius: 半径
4、perimeter: 周长
5、case: 情形
6、synthesis: 合成
7、execute: 执行
十六、递归函数
1、recursion: 递归
2、Infinite: 无穷
3、maximum: 最大值
4、depth: 深度
5、exceeded: 超过
6、factorial: 阶乘
7、search: 查询
8、power:
9、lower: 下方
10、upper: 上方
11、middle: 中间
12、assert/assertion: 异常
十七、列表推导式/lambda表达式
1、square: 平方
2、even: 偶数
3、comprehension: 理解
4、lambda: 希腊字母λ的英文名称
十八、列表推导式/lambda表达式
1、regular: 规则
2、expression: 表达式
3、group:
4、match: 匹配
5、span: 跨度
6、ignore case: 忽略 大小写
7、multi line: 多 行
8、dot all: 点 全部
9、unicode: 万国码
10、verbose: 累赘
11、pos/position: 位置