python代码中指定时区获取时间方法时间:2021-03-26 08:39:32os.environ['TZ'] = 'Asia/Shanghai' os.environ['TZ'] = 'Europe/London' hour_cur = time.strftime('%H')