双语术语表(全课程)
考前背一轮,防止"读不懂题"。⭐ 逐章 2 分钟扫一遍。
核心术语速查
| 中文 |
English |
| 变量 |
variable |
| 赋值 |
assignment |
| 整数 / 浮点数 |
integer / float |
| 字符串 |
string |
| 布尔值 |
boolean |
| 类型转换 |
type conversion / casting |
| 输入 / 输出 |
input / output |
| 格式化字符串 |
f-string |
| 条件语句 |
conditional statement |
| 循环 / 迭代 |
loop / iteration |
| 死循环 |
infinite loop |
| 跳出 / 跳过 |
break / continue |
| 嵌套 |
nested |
| 拼接 |
concatenation |
| 切片 |
slicing |
| 不可变 |
immutable |
| 列表 / 元组 |
list / tuple |
| 字典 / 集合 |
dictionary / set |
| 推导式 |
comprehension |
| 浅拷贝 / 深拷贝 |
shallow copy / deep copy |
| 函数 / 返回值 |
function / return value |
| 参数 / 实参 |
parameter / argument |
| 作用域 |
scope |
| 递归 |
recursion |
| 匿名函数 |
lambda |
| 异常 / 抛出 |
exception / raise |
| 文件读写 |
file I/O |
| 上下文管理器 |
context manager |
| 类 / 对象 |
class / object |
| 属性 / 方法 |
attribute / method |
| 继承 / 多态 |
inheritance / polymorphism |
| 构造方法 |
constructor |
| 魔法方法 |
magic method(dunder) |
| 模块 / 导入 |
module / import |
| 正则表达式 |
regular expression |
| 算法 / 复杂度 |
algorithm / complexity |
| 二分查找 |
binary search |
| 贪心 / 穷举 |
greedy / brute force |
| 网络爬虫 |
web crawler |
| 数据帧 |
DataFrame |
| 可视化 |
visualization |
考试高频英文短语
| 英文 |
意思 |
| Write a function that… |
写一个函数,要求… |
| Return the result |
返回结果 |
| Print each element on a new line |
每个元素打印一行 |
| Handle the edge case |
处理边界情况 |
| Do not use built-in functions |
不要用内置函数 |
| The program should accept input… |
程序应接收输入… |
常见异常英文名(笔试爱考对应关系)
| 异常 |
触发场景 |
ValueError |
类型对但值不对:int("abc") |
ZeroDivisionError |
除以 0 |
IndexError |
列表下标越界 |
KeyError |
字典键不存在 |
TypeError |
类型不匹配:"a" + 1 |
FileNotFoundError |
打开不存在的文件 |