2016-08-09 34 views

回答

2

不,這不是在同一時間反正。這裏是一個顯示終端時間的例子。

import time 
while True: 
    #time.sleep(1) #Uncommet to have it only print the time every second 
    x = time.strftime("%H:%M:%S") 
    print x 
+0

謝謝 - 我不認爲我可以 – cookies