📜  python 获取天数 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:56.051000             🧑  作者: Mango

代码示例1
from datetime import date

d0 = date(2008, 8, 18)
d1 = date(2008, 9, 26)
delta = d1 - d0
print(delta.days)