全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Alias?

Definition 2.4 High School Computer Science · 第 2 章 — Tuples, Sets and Comprehensions

Two names are aliases when they refer to the same value in memory. The test a is b is true exactly when a and b are aliases; the test a == b compares the contents of two values, which may be distinct.

Names refer to values. a and b are aliases of one list; c refers to a copy, which changes on its own.
Names refer to values. a and b are aliases of one list; c refers to a copy, which changes on its own.
在原文中阅读 →