Python學習(3):批量修改文件名(以excel文件爲例)

# _*_ coding: utf-8 _*_ import os dir = input('請輸入文件路徑:') for root, dirs, files in os.walk(dir): for i in range(len(files)): filename = files[i] new_name = filename[:-5] + "_201902
相關文章
相關標籤/搜索