在python中,有没有办法检查对象是不可变还是可变?
喜欢isimmutable(a)会返回True,如果a是不可变的,则返回False.
isimmutable(a)
True
a
False
python mutable immutability python-2.7 python-3.x
immutability ×1
mutable ×1
python ×1
python-2.7 ×1
python-3.x ×1