1. 程式人生 > >python3練習100題——009

python3練習100題——009

.html amp ctime uno 題目 使用 int AR lee

今天的題目好像有點水。。。

原題鏈接:http://www.runoob.com/python/python-exercise-example9.html

題目:暫停一秒輸出。

我的代碼:

import time
print("Start:%s" %time.ctime())
time.sleep(1)
print("End:%s" %time.ctime())

思考:

學會使用time模塊的sleep()函數就行了,可以參考:http://www.runoob.com/python/att-time-sleep.html

python3練習100題——009