摘要: 1 如果字典里一个键指向一个实例,深拷贝会拷贝出一个新的实例吗? 不会: class foo: def __init__(self): print('do init foo') a = {'cls': foo()} a # do init foo {'cls': <__main__.foo at 0 阅读全文
posted @ 2023-02-05 14:29 Jneeee 阅读(20) 评论(0) 推荐(0) 编辑