摘要: 事情大概是这样的:我定义了一个dicta = {'a':0,'b':1,'c':2} 在另外一个python文件中import了上面的afrom test import aclass test1: def add(self): b = '3' a.update({'d': b}) print(a) 阅读全文
posted @ 2020-10-15 10:52 JosephChow 阅读(477) 评论(0) 推荐(0) 编辑