2014-12-04 86 views

回答

3

这应做到:

import datetime 

now = datetime.datetime.now() 
now.strftime('%H:%M:%S') 

时间等单位可以通过使用指令found here被发现。