python中可變和不可變對象(復值,拷貝,函數值傳遞)

python中有可變對象和不可變對象, 可變對象: list, dict. 不可變對象有: int, string, float, tuple. python不可變對象 int, string, float, tuple 先來看一個例子 def int_test():      i = 77     j = 77     print(id(77))                    #1403
相關文章
相關標籤/搜索