k5web/diy/genJson.py
2024-06-08 00:46:40 +08:00

11 lines
221 B
Python

import os
import json
list = []
for filename in os.listdir(r'.'):
if filename[-1] == 'n':
list.append(filename)
print(json.dumps(list))
with open("version.json","w") as file:
file.write(json.dumps(list))