python 中函数传参还是传引用?例子: 12345678910111213141516 def (n): n = 5 return no = 4print(func1(o)) //输出5print(o) //输出4def func(m): m[0] = 20 m = [4,5,6] return ml = [1,2,3]print(func(l)) //输出[4,5,6]print(l) //输出[20,2,3] 具体内容可查看该链接 赞微海报分享
近期评论