from fastapi import FastAPI,APIRouter from class_management.main import Classes_API from scores.main import Scores_API from stu_jiuye.main import Shtudent_Jiuye from students.main import Students_API from Teachers.main import Teachers_API from StatCalc.main import StatCalc_API from databases import * app = FastAPI(title="学生管理系统") app.include_router(Classes_API,tags=["班级管理模块"]) app.include_router(Scores_API,tags=["学生考核成绩管理模块"]) app.include_router(Shtudent_Jiuye,tags=["学生就业管理模块"]) app.include_router(Students_API,tags=["学生管理模块"]) app.include_router(Teachers_API,tags=["老师管理模块"]) app.include_router(StatCalc_API,tags=["统计分析模块"]) if __name__ == "__main__": Base_all.metadata.create_all(bind=engine_all) def main(): print("Hello from student-manage-system!") import uvicorn uvicorn.run("main:app", host="0.0.0.0", port=59000) """ IPv4 地址 . . . . . . . . . . . . : 192.168.6.40 子网掩码 . . . . . . . . . . . . : 255.255.255.0 默认网关. . . . . . . . . . . . . : 192.168.6.1 """