import sxtwl
from datetime import datetime
lunar = sxtwl.Lunar()
def fun1(day1):
a = datetime.now().year
date1 = datetime.strptime(day1,
Python常用模块 之 datetime & sxtwl模块——实现阴阳历生日换算
最新推荐文章于 2024-08-15 01:55:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
import sxtwl
from datetime import datetime
lunar = sxtwl.Lunar()
def fun1(day1):
a = datetime.now().year
date1 = datetime.strptime(day1,