上一页 1 ··· 6 7 8 9 10
摘要: 1 sql = 'INSERT INTO course(class_name, credit, properties, teacher_name, college_given, classroom) ' \ 2 'VALUES ("%s", "%d", "%s", "%s", "%s", "%s")' % \ 3 (clas... 阅读全文
posted @ 2017-03-04 13:03 chen狗蛋儿 阅读(3800) 评论(0) 推荐(0) 编辑
摘要: python中有一个zfill方法用来给字符串前面补0,非常有用 zfill()也可以给负数补0 对于纯数字,我们也可以通过格式化的方式来补0 阅读全文
posted @ 2017-03-04 11:20 chen狗蛋儿 阅读(11662) 评论(1) 推荐(1) 编辑
摘要: 1、鼠标右击 ActionChains(driver).contest_click(right_click).perform() 2、鼠标悬停 ActionChains(driver).move_to_element(above).perform() 3、鼠标双击 ActionChains(driv 阅读全文
posted @ 2017-03-02 16:37 chen狗蛋儿 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: 连接:mysql: mysql -h localhost -u username -pmongodb:con = pymongo.Connection(‘localhost’,27017)显示数据库mysql:show databases;mongodb:con.database_names()使用 阅读全文
posted @ 2017-03-02 16:36 chen狗蛋儿 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 本文摘自:http://blog.csdn.net/huilan_same/article/details/52544521 发现太多人不会用等待了,博主今天实在是忍不住要给大家讲讲等待的必要性。 很多人在群里问,这个下拉框定位不到、那个弹出框定位不到…各种定位不到,其实大多数情况下就是两种问题:1 阅读全文
posted @ 2017-03-01 21:05 chen狗蛋儿 阅读(3089) 评论(0) 推荐(1) 编辑
摘要: .text is a method of an element object. Step 2 is the assignment of the element to the name html . 阅读全文
posted @ 2017-03-01 20:56 chen狗蛋儿 阅读(107) 评论(0) 推荐(0) 编辑
摘要: import re string="A1.45,b5,6.45,8.82" print(re.findall(r"\d+\.?\d*",string)) # r"\d+\.?\d*" \d+ 匹配一个或多个数字; \.? 匹配.一次或零次; \d* 匹配零个或多个数字 # ['1.45', '5', '6.45', '8.82'] 阅读全文
posted @ 2017-02-22 17:40 chen狗蛋儿 阅读(1269) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10