hello!python!
摘要: 浏览器页面跳转方法记录: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 阅读全文
posted @ 2013-08-29 18:15 你坚持了吗 阅读(20335) 评论(1) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2013-08-29 14:01 你坚持了吗 阅读(330) 评论(0) 推荐(0) 编辑
hello!python!