def test(a, data=None): print(\'before append data id:\', id(data)) data.append(a) print(\'after append data id:\', id(data)) return data if __name