随笔分类 - Python
摘要:直接使用pip安装 用 Chrome 浏览器来测试 1 from selenium import webdriver 2 3 browser = webdriver.Chrome() 4 browser.get('http://www.baidu.com/') 1 from selenium imp
阅读全文
摘要:在一个系统中共存Python2、python3的时候,pip、pip2、pip3使用的时候会报错: c:\Python35\Scripts>pip3Fatal error in launcher: Unable to create process using '"' 解决方法: python3: p
阅读全文
摘要:所有日期、时间的api都在datetime模块内。 1. datetime => string now = datetime.datetime.now() now.strftime('%Y-%m-%d %H:%M:%S') #输出2012-03-05 16:26:23.870105 strftime
阅读全文