不可变类型:数字 (number),字符串(string),元组(tuple)。
可变类型:数组(list),字典(dict),集合(set) 。
1、python传递不可变对象实例
代码:
运行结果:
2、python传递可变对象实例
代码:
运行结果:
不可变类型:数字 (number),字符串(string),元组(tuple)。
可变类型:数组(list),字典(dict),集合(set) 。
1、python传递不可变对象实例
代码:
运行结果:
2、python传递可变对象实例
代码:
运行结果: