摘要: python的参数传递 python中参数传递到底是传值还是传引用呢? test1.py: def test(num): num += 10 x = 1 test(x) print x 输出结果:1 test2.py: def test(lst): lst[0] = 4 lst[1] = 5 tli 阅读全文
posted @ 2021-05-07 10:22 习久性成 阅读(1040) 评论(0) 推荐(0)