defzhuangshi(cls):definner():passreturninnerclassA:passprint(zhuangshi(A)iszhuangshi(A))print(id(zhuangshi(A))==id(zhuangshi(A)))print(id(zhuangshi(A)))print(id(zhuangshi(A)))控制台输出结果如下:FalseTrue3166541631665416惊呆!为什么两个对象的内存地址都一样,为何is运行结果是false?
宝慕林4294392
慕姐4208626
相关分类