列表list 可以添加也可以相乘,字符串也一样
nums = [1, 2, 3] print(nums + [4, 5, 6]) print(nums * 3) 结果: >>> [1, 2, 3, 4, 5, 6] [1, 2, 3, 1, 2, 3, 1, 2, 3] >>>
1