python3 datetime和time獲取當前日期和時間

最經使用到了一些時間相關的包和函數,之後使用到更多,再補充html import datetime import time # 獲取當前時間, 其中中包含了year, month, hour, 須要import datetime today = datetime.date.today() print(today) print(today.year) print(today.month) prin
相關文章
相關標籤/搜索