commit 7a66ee0dc4b24fe2bf160df5d4311f32ace33103 Author: Felix <> Date: Thu Jan 9 17:32:56 2025 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0f47134 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# 忽略构建产物目录 +/build/ +/dist/ +/venv/ +# 忽略日志文件 +*.log + +# 忽略一些说明文档 +*.txt + +# 忽略源文件 +*.html + +# 忽略测试输出的文件 +*.json \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..37240d5 --- /dev/null +++ b/main.py @@ -0,0 +1,22 @@ +# -*- coding:utf-8 -*- +import json +import re + + +def htmlToJson(): + with open('index.html', encoding='utf8') as f: + fileContent = f.read() + + patList = re.findall(r'