对于Python类的简介,我必须:
创建一个“时间表”程序,从Project4中读取时钟程序创建的日志文件,并将工作时间添加到工资单数据库文件中。您的程序应该使用用户id作为数据库的主键(每行的第一个数据项),然后列出员工每轮班的日期和持续时间(每行一个班次)。在
我的时钟工作得很好,只是不知道如何让python计算时间。这是时钟程序到文件的输出。在
ClockIN EmpleyeeNumber: 1234566 ClockTime: 08:54:44 ClockDate: 12/07/2016
ClockOUT EmpleyeeNumber: 1234566 ClockTime: 08:55:20 ClockDate: 12/07/2016
ClockIN EmpleyeeNumber: 1234567 ClockTime: 09:14:50 ClockDate: 12/07/2016
ClockOUT EmpleyeeNumber: 1234567 ClockTime: 09:15:02 ClockDate: 12/07/2016
在输入.txt公司名称:
^{pr2}$在时间表.txt公司名称:
相关问题 更多 >
编程相关推荐