seq
=
1
#计数器,从1开始
for
file
in
files:
os.rename(
, os.path.join(path,
str
(seq)
+
". "
.split(
"\\"
)[
-
]))
#重命名文件