2017-10-05 22 views

回答

2

您可以使用date()time()方法來提取它們:

dt = datetime.datetime(2017, 10, 5, 17, 7, 51) 
d = dt.date() 
t = dt.time() 
相關問題