python - python函数的参数传递是传值还是传引用?

可更改(mutable)对象与不可更改(immutable)对象 str, tuple, 和number是不可更改的对象, list,dict等则是可以修改的对象。 example 结论 mutable 变量,传址 immutable 变量,传值
相关文章
相关标签/搜索