list1=["曹操","张三","赵子龙","关云长","张飞"]
for n in range(0,len(list1)):
list1[n]="1810 "+list1[n]
print(list1)
列表前添加前缀
最新推荐文章于 2023-01-12 16:21:45 发布
list1=["曹操","张三","赵子龙","关云长","张飞"]
for n in range(0,len(list1)):
list1[n]="1810 "+list1[n]
print(list1)