后端

测试

nkul · 12月13日 · 2022年 265次已读

$$\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)
相关文章
暂无相关文章!
1 条回应
  1. nkul北京2022-12-22 · 21:17

    <font class="rainbow">这样评论,可以有彩虹字体啦!</font>