python中可变和不可变对象(复值,拷贝,函数值传递)

python中有可变对象和不可变对象, 可变对象: list, dict. 不可变对象有: int, string, float, tuple. python不可变对象 int, string, float, tuple 先来看一个例子 def int_test():      i = 77     j = 77     print(id(77))                    #1403
相关文章
相关标签/搜索