Python元组与列表的区别
1. Literal(字面意义的)
someTuple = (1,2)
someList = [1,2]
2. Size(大小)
a = tuple(range(1000))
b = list(range(1000))
a.__sizeof__() # 8024
b.__sizeof__() # 9088
Due to the smaller size of a tuple operation, it becomes a bit faster, but not that much to m