在编写程序时候,我们有时需要将程序短暂的停顿一下,这个时候就需要用到time包下面的sleep函数

#coding=utf-8
from time import sleep
'''
暂停一秒输出。
'''
adict={"姓名":"雪瞳","年龄":23,"学历":"研究生"}

for key,values in adict.items():
print(key)
print(values)
sleep(1)#暂停1s
  #time.sleep(1)#若是 import time 则需要time.sleep()函数

# 加油

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-03-18
  • 2021-06-16
  • 2021-08-18
  • 2021-11-05
  • 2021-11-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-01-21
相关资源
相似解决方案