摘要: t = ([1,2,3],[2,3,4],3) print(t) t[0][1]=9 print(t) # ~ t[2]=9#TypeError: 'tuple' object does not support item assignment # ~ print(t) ''' ([1, 2, 3], 阅读全文
posted @ 2024-01-18 16:24 Kazuma_124 阅读(21) 评论(0) 推荐(0)
摘要: m = 10 a = 10 print(id(m)) print(id(a)) '''输出 140713874176728 140713874176728 ''' print() a = 1 b = 2 c = 3 d = a+b print('a(1)\t'+str(id(a))) print(' 阅读全文
posted @ 2024-01-18 12:06 Kazuma_124 阅读(24) 评论(0) 推荐(0)