我想用Python的Class来做一个计时器, 将Class命名为Timer, 用start method 和 end method, t = timer, t.start(), t.end(),t.end() 停止计时器并将记录的时间到终端显示, 当计时器已经开始运行时t.start()给出error,当计时器计时器没有运行时t.end()给出error,timer可以设置显示小时,分钟或者秒, 而且显示最近一次的计时。Python版本为python 2.7, 谢谢大家了!
GCT1015
相关分类