Python 修改程序的默认时区和工作域的时区

6、Python 修改程序的默认时区和工作域的时区

import os,time

os.environ[‘TZ’] = ‘Asia/Shanghai’
time.tzset()

你可能感兴趣的:(python)