assign sth to null
The programmer assigned the variable to null.
程序员将变量赋值为空。
空值;无;零
先理解核心含义,再看它在真实句子里的用法。
空值;无;零
An empty or non-existent value; nothing; in computing, the absence of a value.
The programmer assigned the variable to null.
程序员将变量赋值为空。
计算机和数据库中常指空值;一般可理解为“没/无/零”。
不存在或空的值或值集
A non-existent or empty value or set of values.
零数量的表达式;无
Zero quantity of expressions; nothing.
无效或无意义的事物
Something that has no force or meaning.
空字符;ASCII或Unicode字符(␀),值为零,表示无字符,有时用作字符串终止符
The null character; the ASCII or Unicode character (␀), represented by a zero value, which indicates no character and is sometimes used as a string terminator.
The database query returned a null for the missing field.
数据库查询对缺失的字段返回了一个空值。
He initialized the pointer as null to indicate it points to nothing.
他将指针初始化为空,以表示它不指向任何对象。
After the deletion operation, the array contained several nulls.
删除操作后,数组包含多个空值。
The programmer assigned the variable to null.
程序员将变量赋值为空。
The function returns null if the input is invalid.
如果输入无效,函数返回空。
Always check for null before using a pointer.
在使用指针之前始终检查是否为空。
Not this
She nulls the previous decision.
Use this
She nullifies the previous decision.
英语中'null'作为名词,表示'零'或'无效',但作为动词时通常使用'nullify';中文学习者可能直接使用'null'作动词,这是不标准的。
Not this
The file is null.
Use this
The file is empty.
中文'空'对应英文形容词'empty',而'null'一般作为名词使用,表示'无效值';在描述文件无内容时应使用'empty'。
Focus on the distinctions below. Other candidates are kept compact until a reliable usage note is available.
空值
If the field contains a null value, the program skips it.
如果字段包含空值,程序会跳过它。
空字符
C strings end with a null character.
C 语言字符串以空字符结尾。
空指针
Check for a null pointer before you use it.
使用前先检查空指针。
空值检查
Always do a null check before accessing the object.
在访问该对象之前,务必进行空值检查。
返回空值
The function returns null if no match is found.
如果找不到匹配项,该函数返回空值。
Use null naturally, then get feedback on meaning, tone, grammar, and phrasing.
Revisit a common error or keep this word in your review list.
可这样记:null 像数字 0 两边各站一条竖线(两个 l),表示空无所有——空值、零、无意义。
语域:neutral 常见场景:编程、数据库、数据处理 表示“空值、无值”时,多用于计算机编程和数据处理领域,属于中性而偏专业的说法;在日常口语中较少单独使用。
常用于法律和计算机语境,表示无效或空值。
Dictionary facts from ECDICT, WIKTIONARY, WORDNET.