>>> import time >>> time.asctime() 'Fri Jan 4 11:17:20 2019' >>> time.asctime((2018, 9, 30, 9, 44, 31, 6, 273, 0)) 'Sun Sep 30 09:44:31 2018' >>> time.asctime(time.localtime(1538271871.226226)) 'Sun Sep 30 09:44:31 2018' >>>
>>> import time >>> time.asctime() 'Fri Jan 4 11:17:20 2019' >>> time.asctime((2018, 9, 30, 9, 44, 31, 6, 273, 0)) 'Sun Sep 30 09:44:31 2018' >>> time.asctime(time.localtime(1538271871.226226)) 'Sun Sep 30 09:44:31 2018' >>>
转载于:https://www.cnblogs.com/sea-stream/p/10218823.html