Python Exercise Example 9
Title: second pause output.
Program Analysis: None.
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- import time myD = {1: 'a', 2: 'b'} for key, value in dict.items(myD): print key, value time.sleep(1) # 暂停 1 秒
The output is above examples (there will be a pause effect):
1 a 2 b