小更新

This commit is contained in:
CaryXiong
2022-06-09 16:21:08 +08:00
parent 1f94f558c4
commit 0ce24bff92
3 changed files with 3 additions and 8 deletions

View File

@ -1,13 +1,12 @@
# -*- conding: utf8 -*-
import os
from msctspt.funcOpera import keepart
m = 0
for path, dir_list, file_list in os.walk(r"./"):
for file_name in file_list:
if keepart(file_name, '.', None) == '.py':
if file_name.endswith('.py'):
file = os.path.join(path, file_name)
print("得到文件名:" + str(file))
for i in open(file, 'r', encoding="utf-8"):