How to understand: twice call the function last_add(), but the id of the parameter is same.
def last_add(_list = []):
_list.append('END')
print(id(_list))
last_add()
last_add()
How to understand: twice call the function last_add(), but the id of the parameter is same.
def last_add(_list = []):
_list.append('END')
print(id(_list))
last_add()
last_add()