题目:暂停一秒输出。
练习代码:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
n=0
while True: #ctrl+c停止
print('第%3d秒'%n)
time.sleep(1)
n=n+1
题目:暂停一秒输出。
练习代码:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import time
n=0
while True: #ctrl+c停止
print('第%3d秒'%n)
time.sleep(1)
n=n+1