python编写学生选课系统程序_python 开发程序:选课系统

1 #!/usr/bin/env python

2 #-*- coding:utf-8 -*-

3 #version:3.5.2

4 #author:wangeq

5

6 importsys,os7 importjson8 importpickle9

10 from bin importcourse11 from core importuid12

13 #数据库文件路径

14 db_DIR = course.BASE_DIR + r"\db"

15 db_school = db_DIR + r"\school"

16 db_teacher = db_DIR + r"\teacher"

17 db_student = db_DIR + r"\student"

18 db_classes = db_DIR + r"\classes"

19 db_course = db_DIR + r"\course"

20 db_admin = db_DIR + r"\admin"

21 db_class_record = db_DIR + r"\class_record"

22 db_class_grade = db_DIR + r"\class_grade"

23

24 #基础类,主要包括文件的读写操作

25 classBaseclass(object):26 def __init__(self):27 pass

28 defsave(self,type,dict):29 filename =uid.create_md()30 dict['uid&#

你可能感兴趣的:(python编写学生选课系统程序_python 开发程序:选课系统)