driver = webdriver.Chrome() tz_params = {'timezoneId': 'America/New_York'} driver.execute_cdp_cmd('Emulation.setTimezoneOverride', tz_params)
linux的时区设置参照https://www.cnblogs.com/clayyjh/p/17017841.html
本文来自博客园,作者:Clay,转载请注明原文链接:https://www.cnblogs.com/clayyjh/p/17023740.html