0
我想我誤解了datetime輸入是如何進行的,它看起來像一個元組,但不是顯然,請有人可以解釋爲什麼這不起作用?適當的datetime.time輸入
print(datetime.date(2000, 1, 1))
date1 = 1, 1, 2000
print(datetime.date(date1))
>2000-01-01
>Error message: an integer is required (got type tuple)