# 利用python 生成造数据的sql语句,再去mysql中执行 import random import time # 构造表t_user_weight def create_t_user_weight(): start = time.time() # 定义需要生成的数据量 count = 10 ...
分类:
编程语言 时间:
2020-12-09 12:20:38
阅读次数:
6
1. Qt Creator -> File -> New File or Project -> Qt -> Qt Resource File ->添加但当前项目 2. 创建资源文件名res.qrc -> 右键 ->Open in Editor 3. 当前目录下新建文件夹images,将资源文件放在该 ...
分类:
其他好文 时间:
2020-12-09 12:07:50
阅读次数:
4
oBIX 全称是 Open Building Information Exchange,它是基于 RESTful Web Service 的接口的标准,用于构建控制系统。oBIX是在专为楼宇自动化设计的框架内,使用XML和URI在设备网络上读写数据的。 因项目需要使用 Python 对 Niagar ...
分类:
编程语言 时间:
2020-12-08 12:20:07
阅读次数:
7
终端输入: apt-get autoremove open-vm-tools sudo apt-get install open-vm-tools-desktop 然后重启电脑就可以了。 https://blog.csdn.net/weixin_42670402/article/details/86 ...
两个都可以执行系统命令,但是如果想要获取到命令的输出内容就要用到os.popen com=os.popen('ls') print(com.readlines()) ...
分类:
编程语言 时间:
2020-12-07 12:35:05
阅读次数:
6
##1,vba字符串函数列表: Trim(string) 去掉string左右两端空白 Ltrim(string) 去掉string左端空白 Rtrim(string) 去掉string右端空白 Len(string) 计算string长度 Left(string, x) 取string左段x个字符 ...
分类:
编程语言 时间:
2020-12-07 12:24:32
阅读次数:
5
配置文件格式为: 代码: ClassName::ChineseName() { ifstream configFile; string filePath = "填写配置文档地址"; configFile.open(filePath.c_str()); string strLine; if (conf ...
分类:
编程语言 时间:
2020-12-07 12:22:07
阅读次数:
6
一、配置中心 nacos有两大功能:注册中心和配置中心 nacos的中文文档:https://nacos.io/zh-cn/docs/open-api.html 1、配置文件的缺点 (1)生产环境的数据库的用户名和密码都配置在配置文件中,所有开发人员都能看到密码,这就造成了一定的安全隐患; (2)配 ...
分类:
其他好文 时间:
2020-12-07 12:04:54
阅读次数:
3
? Part of "memory-management" series Please follow me on Twitter for updates and let me know if something can be improved in the post. In this multi-p ...
分类:
其他好文 时间:
2020-12-05 11:10:24
阅读次数:
7
通过Cookie跳过登录验证码【限cookie不失效有用】验证码,相信每个写web自动化测试的同学来说,都是个头疼的事,怎么办呢?方法还是有的,先说今天这种方式,通过cookie绕过登录验证码思路:需要你通过抓包工具抓到你登录的cookie接下来开始动手。1、开启Fiddler工具,像这样!2、通过浏览器登录正常登录百度账号。像这样!3、通过Fiddler获取登录请求的Cookie。找到Host为
分类:
其他好文 时间:
2020-12-05 10:35:55
阅读次数:
6