题目:暂停一秒输出。
例子:
import time
def pause_a_second():
myD = {1:'a',2:'b'}
for key,value in dict.items(myD):
print(key,value)
time.sleep(1)
运行:
>>> pause_a_second()
1 a
2 b
题目:暂停一秒输出。
例子:
import time
def pause_a_second():
myD = {1:'a',2:'b'}
for key,value in dict.items(myD):
print(key,value)
time.sleep(1)
运行:
>>> pause_a_second()
1 a
2 b