考虑以下代码:
a = {...} # a is an dict with arbitrary contents b = a.copy()
如何检查Python中的类型是否可变?
python immutability python-2.x python-3.x hashable
hashable ×1
immutability ×1
python ×1
python-2.x ×1
python-3.x ×1