循环打印以顺序数字为标识,且格式为“0**”的文件名。
for s in range(10):
... a = f'train{id+s:03}.tif'
... print(a)
...
train004.tif
train005.tif
train006.tif
train007.tif
train008.tif
train009.tif
train010.tif
train011.tif
train012.tif
train013.tif
循环打印以顺序数字为标识,且格式为“0**”的文件名。
for s in range(10):
... a = f'train{id+s:03}.tif'
... print(a)
...
train004.tif
train005.tif
train006.tif
train007.tif
train008.tif
train009.tif
train010.tif
train011.tif
train012.tif
train013.tif