标签:int bsp 结果 color address 函数 res add style
a=10 print("%d address is %d" % (a,id(a))) def fun(num): print("%d address is %d" % (num,id(num))) fun(a) 运行结果: 10 address is 140706134913584 10 address is 140706134913584 实参a 传递给num 的是地址, 都是对10的引用
标签:int bsp 结果 color address 函数 res add style
原文地址:https://www.cnblogs.com/abel2020/p/13081511.html