python_Daily practice(毎日練習)84
437 ワード
#coding=utf-8
import os
#1.
filenames = os.listdir("./py")
#2. rename
for name in filenames:
print(name)
os.rename("./py/"+name, "./py/[ ]-"+name)