ประโยคภาษาจีน : 中文句子 |
---|
mò rèn 默认 qíng kuàng xià 情况下 biàn liàng 变量 de 的 fàn wéi 范围 shì 是 biàn liàng 变量 dì yī cì 第一次 bèi 被 fēn pèi 分配 dào 到 de 的 hán shù 函数 de 的 nèi bù 内部 rú guǒ 如果 tā 它 de 的 dì yī cì 第一次 fēn pèi 分配 chū xiàn 出现 zài 在 rèn hé 任何 hán shù 函数 de 的 wài bù 外部 nà me 那么 tā 它 jiù shì 就是 quán jú 全局 biàn liàng 变量 |
By default, a variable is scoped to the function in which it is first assigned to, or is global if its first assignment occurs outside any function. |