# 利用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
批量操作Tomcat Shell脚本 #!/bin/bash tom="/opt/ronghelist" product=$1 usage="{gongcheng1|all} {start|stop|restart|status}" if [ "$1" == "" -o "$2" == "" ];t ...
分类:
系统相关 时间:
2020-12-08 12:39:01
阅读次数:
9
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
// setupPersistentNs creates persistent namespace without switchin to it. // Note, pid namespaces cannot be persisted. func setupPersistentNs(namespac ...
分类:
其他好文 时间:
2020-12-07 12:33:25
阅读次数:
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
linux下查找文件中空行的行号 linux下查找文件中空行的行号 以aa.txt举例: 方法1:sed -n '/[a-zA-Z0-9@#$%^&*]/!=' aa.txt 方法2:grep -n ^$ aa.txt 方法3:awk '/^$/{print NR}' aa.txt 方法4:sed ...
分类:
系统相关 时间:
2020-12-07 12:22:19
阅读次数:
9
配置文件格式为: 代码: ClassName::ChineseName() { ifstream configFile; string filePath = "填写配置文档地址"; configFile.open(filePath.c_str()); string strLine; if (conf ...
分类:
编程语言 时间:
2020-12-07 12:22:07
阅读次数:
6