累加
names = ['xiaoming', 'xiaoliang', 'xiaozhang']
news_names = names + names
print(news_names)
结果
['xiaoming', 'xiaoliang', 'xiaozhang', 'xiaoming', 'xiaoliang', 'xiaozhang']
乘法
names = ['xiaoming', 'xiaoliang', 'xiaozhang']
news_names2 = names * 3
print(news_names2)
结果
['xiaoming', 'xiaoliang', 'xiaozhang', 'xiaoming', 'xiaoliang', 'xiaozhang', 'xiaoming', 'xiaoliang', 'xiaozhang']