码迷,mamicode.com
首页 >  
搜索关键字:swap file    ( 55132个结果
QT之XML的解析与生成
1、解析 QFile file(ui->comboBox->currentText()); //打开文件 bool isOK = file.open(QIODevice::ReadOnly | QIODevice::Text); if(isOK){ QXmlStreamReader reader(& ...
分类:其他好文   时间:2021-05-24 09:30:13    阅读次数:0
Python os 批量修改文件名
# -*- coding: utf-8 -*-import os#设定文件路径path=r'D:\郭鹏历届真题解析2007-2020'i=1#对目录下的文件进行遍历for file in os.listdir(path):#判断是否是文件 file_name=os.path.join(path,fi ...
分类:编程语言   时间:2021-05-24 09:25:18    阅读次数:0
Django关于数据库的对接操作
对近期的数据库配置进行一个记录,方便我以后查阅。 我的Django项目配备的是Mysql的数据库,平时使用的工具是VS Code,推荐安装Mysql插件,效果不错: 下面是在项目的setting.py中配置的Mysql连接数据: DATABASES = { 'default': { 'ENGINE' ...
分类:数据库   时间:2021-05-24 09:06:47    阅读次数:0
MySQL 批量删除表
select concat('drop table ',table_name,';') from information_schema.tables where table_schema='employees' and table_name rlike '^d.*$' into outfile 'd ...
分类:数据库   时间:2021-05-24 08:59:21    阅读次数:0
windows 文件,文件夹操作
1.C标准的文件读写 可移植性强(跨平台) 1 FILE* pFile = nullptr; 2 const char* pcFilePath = ".//1.text"; 3 4 //文件写 5 errno_t err = fopen_s(&pFile, pcFilePath, "ab"); 6 ...
分类:Windows程序   时间:2021-05-24 08:18:38    阅读次数:0
Centos 配置交换空间
运行命令free -h,若swap那一行都是0的话表明没有交换空间。dd if=/dev/zero of=/var/swap bs=1024 count=2048000if 表示infile,of表示outfile,bs=1024代表增加的模块大小,count=2048000代表2048000个模块 ...
分类:其他好文   时间:2021-05-24 07:51:25    阅读次数:0
h5端 input file accept限制类型的话会无法调用相机
在做h5上传照片功能时,对照片格式做了以下限制 <input type="file" accept="image/png,image/jpg,image/jpeg" > 但在微信浏览器中,这种写法会无法调用相机,从而直接进入图库 accept="image/*就是正常的 可以把accept="ima ...
分类:其他好文   时间:2021-05-24 07:03:49    阅读次数:0
Qt 交换Layout中的QWidget控件位置
Layout类中没有直接的swap方法,但是通过其他方法的组合就可以实现交换layout中控件的交换 1 QWidget *w1 = anibutton[1],*w2 = anibutton[3]; 2 int p1 = ui->horizontalLayout->indexOf(w1); 3 in ...
分类:其他好文   时间:2021-05-24 07:01:41    阅读次数:0
获取手机尺寸
[获取手机尺寸](https://www.runoob.com/try/try.php?filename=tryjs_screen_all) ...
分类:移动开发   时间:2021-05-24 06:52:54    阅读次数:0
16.8.2【set容器的大小和交换、插入和删除、查找和统计】
1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 6 7 /* 8 3.8.3 set容器大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断 ...
分类:其他好文   时间:2021-05-24 06:33:00    阅读次数:0
55132条   上一页 1 ... 24 25 26 27 28 ... 5514 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!