print('Hello World') #Hello World # 定义变量 a = 1 b = 2 print(a+b); #3 # 查看的内存地址 print(id(a)) #495894544 print(id(b)) #495894560 # c和d的地址一样吗?(答案:一样的) c = 123 d = 123 print(id(c)) #495896496 print(id(d)) #495896496 # e 是什么类型呢? e = 123 print(type(e)) # <class 'int'>