Python implementation of course selection system

Source: Internet
Author: User
Tags serialization unique id

Roles: School, student, course, Instructor > Job Requirements-[] 1. Create 2 schools in Beijing and Shanghai-[] 2. Create Linux, Python, go 3 courses, linux\py in Beijing, go in Shanghai-[] 3. Course includes, period, price, Create a course through school-[] 4. Create classes through schools, class-related courses, lecturers-[] 5. When you create a student, select the school, associate the Class-[] 5. To associate a school when creating a lecturer role,-[] 6. Provide two role interfaces, one Management interface 6.1 Student view, can register, turn to learn Fee, select Class 6.2 instructor View, instructors can manage their own classes, select classes in class, view class student list, modify the results of the students managed 6.3 manage views, create lecturers, create classes, create courses-[] 7. The data generated by the above operation is saved to the file via pickle serialization. Guest Address: # 1. The program description implementation function is as follows-[x] 1. Create 2 schools in Beijing and Shanghai-[x] 2. Create LINUX,PYTHON,GO3 courses, linux\py Open in Beijing, go in Shanghai-[x] 3. Courses include, period, price, courses created through the school-[x] 4. Create classes through schools, class-related courses, lecturers-[x] 5. When creating a learner, select the school, associate the class-[X] 5. Associate the school with the instructor role-[x] 6. Provide two role interface, a management interface 6.1 student view, can register, pay tuition, select Class 6.2 instructor view, Instructors can manage their own classes, select classes in class, view class student lists, modify the results of the students who are administered 6.3 manage views, create lecturers, create classes, create courses-[x] 7. The data generated by the above operation is saved to the file by Pickle serialization in # # 2. Train of thought and program limit first set limit: 1. Students have geographical restrictions, can not choose both Beijing and Shanghai schools; 2. In order to avoid the conflict of course, students can choose only one course, regardless of history course; 3. Instructors can only choose one class during class; 4. Instructors can choose from Monday to Sunday classes, one-day course, a maximum of 7 classes a week, 5. An account only attribute one person, the account uses the user name to log in, corresponds to the unique ID, namely the study number; 6. A class may correspond to multiple lecturers; View by account: 1. Student Account attributes: study number, class, school, curriculum, performance, name; methods: Registration, class selection, view class information, modify their own information; 2. Tutor Account Attributes: Name, class, school, course, teaching arrangement; Method: View student information, arrange classes, modify their3. Information and revise students ' grades; System account attributes: Name, Administrator permissions method: Create a class, assign a class, create a course, create a lecturer, Administrator function from the program design: 1. Human: attribute has name, age, sex; 2. City class: attribute has city name; 3. School class: Attribute has a school name; 4. Class: Attribute has class name, student, and student one-to-many relationship; 5. Student class: Inherit basic class person, have other attribute elective course, result, and class (one to another); 7. Lecturer class: Inherits the basic class person, has other attributes teaches the course; 7. Course Class: Property has course name, price,; 8. Account class: Attribute has account name, password, status, role; Course Selection System program directory structure. ├──course_selection_system│?? ├──bin # Executable Program entry directory │?? │?? ├──__init__.py│?? │?? └──course_selection.py # program entry │?? ├──CONF # configuration file directory │?? │?? ├──__init__.py│?? │?? ├──__pycache__│?? │?? │?? ├──__init__.cpython-35.pyc│?? │?? │?? ├──__init__.cpython-36.pyc│?? │?? │?? ├──settings.cpython-35.pyc│?? │?? │?? └──settings.cpython-36.pyc│?? │?? └──settings.py # configuration file │?? ├──core # Course Selection System main Logic program directory │?? │?? ├──__init__.py│?? │?? ├──__pycache__│?? │?? │?? ├──__init__.cpython-35.pyc│?? │?? │?? ├──__init__.cpython-36.pyc│?? │?? │?? ├──logger.cpython-35.pyc│?? │?? │?? ├──logger.cpython-36.pyc│?? │?? │?? ├──main.cpython-35.pyc│?? │?? │?? ├──main.cpython-36.pyc│?? │?? │?? ├──operate.cpython-35.pyc│?? │?? │?? └──operate.cpythoN-36.pyc│?? │?? ├──logger.py # Log Recorder module │?? │?? ├──main.py # Main program module │?? │?? └──operate.py # System Operation function module │?? ├──DB # database directory │?? │?? ├──__init__.py│?? │?? ├──accounts│?? │?? │?? ├──10000│?? │?? │?? ├──10001│?? │?? │?? ├──10002│?? │?? │?? ├──10003│?? │?? │?? ├──10004│?? │?? │?? ├──10005│?? │?? │?? ├──__init__.py│?? │?? │?? └──user_names│?? │?? ├──base│?? │?? │?? └──base.db│?? │?? └──increment_id│?? ├──lib│?? │?? ├──__init__.py│?? │?? ├──__pycache__│?? │?? │?? ├──__init__.cpython-35.pyc│?? │?? │?? ├──__init__.cpython-36.pyc│?? │?? │?? ├──account.cpython-35.pyc│?? │?? │?? ├──account.cpython-36.pyc│?? │?? │?? ├──banji.cpython-35.pyc│?? │?? │?? ├──banji.cpython-36.pyc│?? │?? │?? ├──base.cpython-35.pyc│?? │?? │?? ├──base.cpython-36.pyc│?? │?? │?? ├──course.cpython-35.pyc│?? │?? │?? ├──course.cpython-36.pyc│?? │?? │?? ├──db.cpython-35.pyc│?? │?? │?? ├──db.cpython-36.pyc│?? │?? │?? ├──people.cpython-35.pyc│?? │?? │?? ├──people.cpython-36.pyc│?? │?? │?? ├──school.cpython-35.pyc│?? │?? │?? └──school.cpython-36.pyc│?? │?? ├──account.py # account Category │?? │?? ├──banji.py # class │?? │?? ├──base.py. # Data base class │?? │?? ├──course.py # Course category │?? │?? ├──db.py # Database Connection class │?? │?? ├──people.py # People, students, lecturers category │?? │?? └──school.py # School category │?? └──log # log directory │?? ├──__init__.py│?? └──system.log # System Log └──readme.md## 4. Test Account Description System account: Admin/admin Instructor Account: hgz/123 Trainee Account: hgz1/123

Flow chart

Code:
Link: Https://pan.baidu.com/s/1pNmOCjD Password: 2RFJ

Python implementation of course selection system

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.