标签:输出 class port pre nbsp blog time dict span
import time myd={1:‘a‘,2:‘b‘} while True: for key,value in dict.items(myd): print(key,value) time.sleep(1)
暂停一秒输出
原文地址:http://www.cnblogs.com/zhangzihong/p/6134288.html