import os
print(os.path)
img_name = os.listdir('./img')
for index, temp_name in enumerate(img_name):
listArr = temp_name.split('.')
new_name = 'spring_' + str(index) + '.' + listArr[1]
print(new_name)
os.rename( './img/' + temp_name, './imgs/'+ new_name )