You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
388 B
21 lines
388 B
from dal.StudentDAL import StudentDAL
|
|
from bll.StudentBLL import StudentBLL
|
|
from tui.StudentTUI import StudentTUI
|
|
|
|
|
|
def main():
|
|
# 初始化数据访问层
|
|
dal = StudentDAL("data/students.json")
|
|
|
|
# 初始化业务逻辑层
|
|
bll = StudentBLL(dal)
|
|
|
|
# 初始化用户界面
|
|
tui = StudentTUI(bll)
|
|
|
|
# 启动系统
|
|
tui.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |