摘要:
一:赋值 在Python中,所谓的赋值实际上就是对象引用的传递而已,当创建一个对象的时候,再赋值给另外一个变量的时候,并不是赋值给另一个变量。而是把这个变量在地址空间的id地址值传递给另一个变量,简单的说就是拷贝了这个对象的引用。 a = 11 b = a print(b) # 11 print(i 阅读全文
摘要:
import turtle import random from turtle import * from random import * # set the background color for the page import time import pygame def make_cake( 阅读全文