$$\sum\limits_{i=1}^n a_i^2$$asgag
$\sum\limits_{i=1}^n a_i^2$asgag
import os
base = '/Users/ftzklst/Downloads/huang/'
idx = 0
for file in os.listdir(base):
old_file = os.path.join(base, file)
print(old_file[:31])
new_file = os.path.join(base, old_file[:31] + "huang_" + str(idx) + '.png')
idx += 1
# print(new_file)
# new_file = os.path.join(base, file.replace(' ', '_'))
os.rename(old_file, new_file)
<font class="rainbow">这样评论,可以有彩虹字体啦!</font>