def foo append return print foo print foo print foo

1
2
3
4
5
6
7
def foo(p=[]):
p.append(1)
return p
print(foo())
print(foo())
print(foo())