# Author: Sooele year=[33,44,55,66,77,88,99] print(f'原列表{year}') for index,value in enumerate(year): ###按排序输出 print(index,value) ###按竖排序输出year列表 if str(value)!='0': year[index]=int('19'+str(value)) else: year[index]=int('200'+str(value)) print('修改后列表',year)