没有做任何更改,上传一下做备份。

This commit is contained in:
2022-03-06 23:40:31 +08:00
parent 320114533d
commit ed28fc4866
9 changed files with 119 additions and 35 deletions

View File

@ -12,10 +12,9 @@ for path, dir_list, file_list in os.walk(r"./"):
print("得到文件名:" + str(file))
for i in open(file, 'r', encoding="utf-8"):
code = i.replace(' ', '').replace('\n', '')
try:
code -= code[code.index('#'):]
except:
pass
if code.startswith('#'):
continue
if code:
print("\t" + code)
m += 1