编程语言
首页 > 编程语言> > Python 练习实例21

Python 练习实例21

作者:互联网

题目:暂停一秒输出。

# -*- coding: UTF-8 -*-
 
import time
 
myD = {1: 'a', 2: 'b'}
for key, value in dict.items(myD):
    print key, value
    time.sleep(1) # 暂停 1 秒

https://www.runoob.com/python/python-exercise-example9.html

标签:21,Python,value,python,实例,key,time,暂停,myD
来源: https://blog.csdn.net/qq_43558971/article/details/91042082