2015年2月16日
摘要: os.getcwd(): 获取当前目录os.name: 获取当前使用的操作系统 eg: print os.nameos.remove(): 删除指定文件 eg: os.remove('test.txt')os.removedirs():删除指定目录 eg: os.removedirs('testca... 阅读全文
posted @ 2015-02-16 09:22 清明-心若淡定 阅读(3574) 评论(1) 推荐(1) 编辑
摘要: http://selenium-python.readthedocs.io/waits.html 有时候为了保证脚步运行的稳定性,需要在脚本中添加等待时间 添加休眠:需要引入time包,选择一个固定的时间的等待。实例:import time .... time.sleep(2) 智能等待:通过添加i 阅读全文
posted @ 2015-02-16 08:42 清明-心若淡定 阅读(932) 评论(0) 推荐(0) 编辑