优化 import
This commit is contained in:
@@ -53,4 +53,4 @@ class DocPaper:
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
...
|
...
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ class Student:
|
|||||||
for q in self._picked_questions:
|
for q in self._picked_questions:
|
||||||
q.increase_count()
|
q.increase_count()
|
||||||
|
|
||||||
|
|
||||||
class Course:
|
class Course:
|
||||||
def __init__(self, name: str):
|
def __init__(self, name: str):
|
||||||
self._name = name
|
self._name = name
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import math
|
import math
|
||||||
import os
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
|
from typing import Literal
|
||||||
|
|
||||||
import pythoncom
|
import pythoncom
|
||||||
from PySide6.QtCore import QObject, Signal
|
from PySide6.QtCore import QObject, Signal
|
||||||
from win32com import client
|
from win32com import client
|
||||||
from typing import Literal
|
|
||||||
|
|
||||||
from module.achievement.doc import DocxWriter
|
from module.achievement.doc import DocxWriter
|
||||||
from module.achievement.excel import ExcelReader
|
from module.achievement.excel import ExcelReader
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ from qfluentwidgets import GroupHeaderCardWidget, FluentIcon, PushButton, LineEd
|
|||||||
|
|
||||||
from module import LOGLEVEL
|
from module import LOGLEVEL
|
||||||
from module.worker import ARGWorker
|
from module.worker import ARGWorker
|
||||||
|
from ui import MAIN_THEME_COLOR
|
||||||
from ui.components.infobar import ProgressInfoBar
|
from ui.components.infobar import ProgressInfoBar
|
||||||
from ui.components.widget import Widget
|
from ui.components.widget import Widget
|
||||||
from ui import MAIN_THEME_COLOR
|
|
||||||
|
|
||||||
|
|
||||||
class InputSettingCard(GroupHeaderCardWidget):
|
class InputSettingCard(GroupHeaderCardWidget):
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ from qfluentwidgets import GroupHeaderCardWidget, PushButton, IconWidget, BodyLa
|
|||||||
LineEdit, RadioButton
|
LineEdit, RadioButton
|
||||||
|
|
||||||
from module.worker import DTGWorker
|
from module.worker import DTGWorker
|
||||||
|
from ui import MAIN_THEME_COLOR
|
||||||
from ui.components.infobar import ProgressInfoBar
|
from ui.components.infobar import ProgressInfoBar
|
||||||
from ui.components.widget import Widget
|
from ui.components.widget import Widget
|
||||||
from ui import MAIN_THEME_COLOR
|
|
||||||
|
|
||||||
|
|
||||||
class InitSettingCard(GroupHeaderCardWidget):
|
class InitSettingCard(GroupHeaderCardWidget):
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import os
|
|
||||||
import sys
|
|
||||||
import io
|
import io
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
import matplotlib
|
import matplotlib
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
import re
|
|
||||||
|
|
||||||
|
|
||||||
def format_ranges(nums):
|
def format_ranges(nums):
|
||||||
@@ -184,4 +185,4 @@ def resource_path(relative_path: str) -> str:
|
|||||||
return os.path.join(base_path, relative_path)
|
return os.path.join(base_path, relative_path)
|
||||||
|
|
||||||
|
|
||||||
DEVELOPMENT_ENV = getattr(sys, 'frozen', False)
|
DEVELOPMENT_ENV = getattr(sys, 'frozen', False)
|
||||||
|
|||||||
Reference in New Issue
Block a user