代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'capabilities':{ 'browserName':'Microsoft ...
分类:
其他好文 时间:
2020-06-19 01:13:55
阅读次数:
84
代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'desiredCapabilities':{ 'browserName':'Mi ...
分类:
其他好文 时间:
2020-06-19 01:01:30
阅读次数:
79
1.When a lawyer says "objection" during court, he is telling the judge that he thinks his opponent violated a rule of procedure. The judge's ruling de ...
分类:
其他好文 时间:
2020-06-18 11:00:24
阅读次数:
49
http://tinylab.org/myths-about-urandom/ Chen Jie 创作于 2015/06/27 打赏 原文:Myths about /dev/urandom 作者:Thomas Hühn 译者:Chen Jie 1 译之前言 你知道 /dev/random 与 /de ...
分类:
其他好文 时间:
2020-06-18 10:55:39
阅读次数:
78
目录: 一、函数嵌套 二、名称空间与作用域 三、闭包函数 一、函数嵌套 1.函数嵌套定义:在一个函数内又定义了另外一个函数def f1(): def f2(): print('from f2') f2() x = 11111111 return xf1()res = f1()print(res)de ...
分类:
编程语言 时间:
2020-06-17 20:07:44
阅读次数:
55
如果视图使用DbSet,sql server 是支持的,但是mysql必须是用DbQuery,否则视图会报各种类型转换的异常 bool类型 使用tinyint 类型,连接字符串加上 TreatTinyAsBoolean=false ,否则也是各种类型的转换失败,比如 Unable to cast o ...
分类:
数据库 时间:
2020-06-17 18:25:54
阅读次数:
51
-- 2020年3月26日 AM 0、知识回顾 select * from emp; insert into emp(empno, ename, job) values (22, kk, pp); insert into emp(empno, ename, job) select * from de ...
分类:
其他好文 时间:
2020-06-16 19:59:14
阅读次数:
80
在pom文件加入 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skipTests>true</skipTest ...
分类:
Web程序 时间:
2020-06-15 18:05:30
阅读次数:
118
import MySQLdb #查询数量 def Count(cur): count=cur.execute('select * from Student') print ('there has %s rows record' % count) #插入 def Insert(cur): sql = ...
分类:
数据库 时间:
2020-06-15 17:54:50
阅读次数:
78
可以利用selenium的 browser.execute_script('JS方法')来实现。举例如下: 想点击网页的登录按钮时,发现由于网页没有最大化导致元素隐藏定位失败,这里不用maximize_window(),我们用执行JS的方法来实现下。 由于网页没有被最大化,元素被隐藏: 具体执行步骤 ...
分类:
Web程序 时间:
2020-06-14 18:49:05
阅读次数:
111