摘要:
浏览器页面跳转方法记录:from selenium import webdriverimport timebrowser = webdriver.Chrome()first_url='http://www.baidu.com'browser.find_element_by_xpath('//div/div/div/ul/li[1]/strong/a').click()browser.switch_to_window(browser.window_handles[0])browser.title #第一个页面browser.switch_to_window(bro 阅读全文
摘要:
python 的内嵌time模板翻译及说明 一、简介 time模块提供各种操作时间的函数 说明:一般有两种表示时间的方式: 第一种是时间戳的方式(相对于1970.1.1 00:00:00以秒计算的偏移量),时间戳是惟一的 第二种以数组的形式表示即(struct_time),共有九个元素,分别表示,同一个时间戳的struct_time会因为时区不同而不同 year (four digits, e.g. 1998) month (1-12) day (1-31) hours (0-23) minutes (0-59) seconds (0-59) weekday (0-6, Monday is 0 阅读全文