我们可以使用 time.tzname get本地时区名称,但是该名称与不兼容 pytz.timezone 。 ... tzlocal模块返回与当地时区相对应的pytz tzinfo对象:import timefrom datetime ...
確定! 回上一頁