DrZhang Variables can contain all types of values. Lest's take a look at storing text values. After creating and naming a variable, we use the = sign to store a value inside it. fruit = "apple" Storing a value in a variable is like putting stuff inside a labeled box. Here, the variable fruit stores the value "apple". >>> fruit = "apple"
DrZhang 变量可以包含所有类型的值。让我们来看一下存储文本值。 在创建并命名变量后,我们使用 = 符号将一个值存储到其中。 fruit = "apple" 将一个值存储在变量中就像把东西放进一个有标签的盒子里。这里,变量 fruit 存储了值“apple”。