特牛网址导航

021--python--数字时钟的运行-CSDN博客

网友收藏
文章浏览阅读141次。import timefrom time import sleepclass clock: def __init__(self,second = 0,minute = 0,hour = 0): self.hour = hour self.minute = minute self.second = second def run(self): self.second = self.second + 1 if se