摘要:
import sys # 生成器函数--斐波那契 def fibonacci(n): a, b, counter = 0, 1, 0 while True: if (counter > n): return yield a a, b = b, a+b counter += 1 f = fabonac 阅读全文
摘要:
from time import time, localtime, sleep class Clock(object): def __init__(self, hour=0, minute=0, second=0): self._hour = hour self._minute = minute s 阅读全文