列表前添加前缀

list1=["曹操","张三","赵子龙","关云长","张飞"]
for n in range(0,len(list1)):
    list1[n]="1810 "+list1[n]
print(list1)


你可能感兴趣的:(列表前添加前缀)