a = 1
def fun(a):
a = 2
fun(a)
print a # 1

a = []
def fun(a):
a.append(1)
fun(a)
print a # [1]
05-19 10:46