commit 2fea6c4c80ec0c00e60cb8ff3af281e0bf1bea3a Author: codeboss <2422523675@qq.com> Date: Sun Jul 14 18:18:14 2024 +0800 项目初始化 diff --git a/.idea/StoryTools.iml b/.idea/StoryTools.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/.idea/StoryTools.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ad62638 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..f003f87 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1720947658776 + + + + \ No newline at end of file diff --git a/entry.py b/entry.py new file mode 100644 index 0000000..baa955a --- /dev/null +++ b/entry.py @@ -0,0 +1,8 @@ +from PyQt5.QtWidgets import QWidget, QApplication +from sys import argv + + +app = QApplication(argv) +win = QWidget() +win.show() +app.exec() \ No newline at end of file diff --git a/parse/__init__.py b/parse/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/parse/ast_load.py b/parse/ast_load.py new file mode 100644 index 0000000..2d6a19d --- /dev/null +++ b/parse/ast_load.py @@ -0,0 +1,14 @@ +from lxml import etree + + +class ast_parse(): + def __init__(self, ast_path: str): + self.ast_path = ast_path + ast_file = open(ast_path, "rt") + ast_text = ast_file.read() + self.ast_inst = etree.XML(ast_text) + pass + + def generate_time(self)-> str: + self.ast_inst.xpath +