ucanuupnobb
ucanuupnobb copied to clipboard
做两遍,错两遍,列表的可变特性
What gets printed?
def addItem(listParam):
listParam += [1]
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))