You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
问题描述:
"解决方案"中,timezone以from pytz import timezone的方式导入。
但在“讨论”中,未有导入pytz的语句,且访问了pytz.utc和pytz.country_timezones。我在运行时会出现NameError: name 'pytz' is not defined。
问题描述:
"解决方案"中,
timezone
以from pytz import timezone
的方式导入。但在“讨论”中,未有导入
pytz
的语句,且访问了pytz.utc
和pytz.country_timezones
。我在运行时会出现NameError:name 'pytz' is not defined
。以下给出我的一点修改建议:
from pytz import timezone
改成from pytz import timezone, utc, country_timezones
pytz.utc
改成utc
pytz.country_timezones
改成country_timezones
谢谢
The text was updated successfully, but these errors were encountered: