我必须写迷你项目并且不知道如何开始

时间:2015-11-11 23:51:00

标签: python python-2.7

大家好我需要写迷你项目,我不知道从哪里开始或步骤是什么。有人可以帮助我如何开始甚至让我采取措施来做什么?

A perspective client has approached your company to write a program to help track
students accessing the school cafeteria.  The client will supply a list of current student
names and ID numbers. The client would like the program to do the following:


 -Allow the student to enter the school ID number when they enter the cafeteria.  
 -Keep track of the students who are currently in the cafeteria.
 -Display student names and when they logged in
 -Display the total number of students who are currently in the cafeteria.
  Allow the student to enter the school ID number when they enter the cafeteria.
 -Keep track of all the students who accessed the cafeteria throughout the day.
 -Display only to authorized cafeteria personal all the students who came
 -in, when they came in, and when they left.

1 个答案:

答案 0 :(得分:0)

  • 允许学生在进入自助餐厅时输入学校ID号。

    raw_inputinput

  • 跟踪目前在自助餐厅的学生。

    查看字典(甚至是列表或其他Data Structure

  • 显示学生姓名以及他们何时登录

    分别见printtime

  • 显示当前在自助餐厅的学生总数。

    请参阅len

  • 跟踪全天访问自助餐厅的所有学生。

    查看字典(甚至是列表或其他Data Structure

  • 仅向授权自助餐厅展示所有来过的学生

    请参阅printraw_input(或python3中的input

  • ,当他们进来时,他们离开时。

    查看printtime模块,并使用您之前的DataStructures