优化 import

This commit is contained in:
2025-06-28 18:45:20 +08:00
parent 8a07bb728e
commit 9d703212ef
6 changed files with 10 additions and 8 deletions

View File

@@ -53,4 +53,4 @@ class DocPaper:
if __name__ == '__main__':
...
...

View File

@@ -122,6 +122,7 @@ class Student:
for q in self._picked_questions:
q.increase_count()
class Course:
def __init__(self, name: str):
self._name = name

View File

@@ -1,11 +1,11 @@
import math
import os
import traceback
from typing import Literal
import pythoncom
from PySide6.QtCore import QObject, Signal
from win32com import client
from typing import Literal
from module.achievement.doc import DocxWriter
from module.achievement.excel import ExcelReader

View File

@@ -9,9 +9,9 @@ from qfluentwidgets import GroupHeaderCardWidget, FluentIcon, PushButton, LineEd
from module import LOGLEVEL
from module.worker import ARGWorker
from ui import MAIN_THEME_COLOR
from ui.components.infobar import ProgressInfoBar
from ui.components.widget import Widget
from ui import MAIN_THEME_COLOR
class InputSettingCard(GroupHeaderCardWidget):

View File

@@ -7,9 +7,9 @@ from qfluentwidgets import GroupHeaderCardWidget, PushButton, IconWidget, BodyLa
LineEdit, RadioButton
from module.worker import DTGWorker
from ui import MAIN_THEME_COLOR
from ui.components.infobar import ProgressInfoBar
from ui.components.widget import Widget
from ui import MAIN_THEME_COLOR
class InitSettingCard(GroupHeaderCardWidget):

View File

@@ -1,9 +1,10 @@
import os
import sys
import io
import os
import re
import sys
import matplotlib
from matplotlib import pyplot as plt
import re
def format_ranges(nums):
@@ -184,4 +185,4 @@ def resource_path(relative_path: str) -> str:
return os.path.join(base_path, relative_path)
DEVELOPMENT_ENV = getattr(sys, 'frozen', False)
DEVELOPMENT_ENV = getattr(sys, 'frozen', False)