stl常用容器-string C++标准库定义了一种string类,定义在头文件<string> string封装了很多使用的办法: 查找find,拷贝copy,删除delete,替换replace,插入insert 不用考虑内存释放和越界,string管理char*分配的内存,每一次的string ...
分类:
其他好文 时间:
2020-12-25 12:10:04
阅读次数:
0
1.创建Account表 create table Account(id int,name varchar(255),class varchar(255)); 2.往account里插入数据insert into account values(1,'张三','高三一班'),(2,'李四','高三一班 ...
分类:
数据库 时间:
2020-12-22 12:59:56
阅读次数:
0
数据结构c二叉排序树基本操作 2020_12_16 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> //二叉排序树 typedef struct BSTNode { int data; struct BSTNode *lchil ...
分类:
编程语言 时间:
2020-12-21 12:03:24
阅读次数:
0
一、背景 在使用MySQL进行插入的时候,遇到了一个场景:当插入的数据不再数据库中的时候就插入,否则就跳过。 二、方法 我们可以使用下面的SQL语句进行处理,处理语句如下。在这个里面有几个重要的地方,DUAL和insert的操作。 标准: INSERT INTO table (primarykey, ...
分类:
数据库 时间:
2020-12-21 11:40:25
阅读次数:
0
首先,先创建一个用户,这步应该很简单。 用root账户(或者其他有权限的账户)登录, mysql -u root -p 回车 输入密码 回车 切换到mysql表 在user表里插入一个用户就OK mysql> use mysql Database changed mysql> insert into ...
分类:
数据库 时间:
2020-12-19 12:11:46
阅读次数:
1
参考链接:https://www.cnblogs.com/yangmingxianshen/p/7999428.html Django中,数据库的字符集最好为utf-8. 一、查看字符集 1.查看MYSQL数据库服务器和数据库字符集 方法一:show variables like '%charact ...
分类:
数据库 时间:
2020-12-17 13:12:30
阅读次数:
6
解决安装 pip3时 错误: Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)' in the drive '/cdrom/' and p ...
分类:
其他好文 时间:
2020-12-17 12:35:15
阅读次数:
2
IntelliJ Idea 常用快捷键列表 Alt+回车 导入包,自动修正 Ctrl+N 查找类 Ctrl+Shift+N 查找文件 Ctrl+Alt+L 格式化代码 Ctrl+Alt+O 优化导入的类和包 Alt+Insert 生成代码(如get,set方法,构造函数等) Ctrl+E或者Alt+ ...
分类:
其他好文 时间:
2020-12-17 12:04:21
阅读次数:
2
#【日常摸鱼】IOI2014 ##前言 摸鱼~~ ##Rail ###链接 http://uoj.ac/problem/24 ###题解 问题是好想的,因为 $3(n-1)$ 次询问确实搞不出什么花样。 第一轮肯定是询问所有点到 $0$ 的距离,记为 \(dis(i)\) 。最近的点一定是离 $0$ ...
分类:
其他好文 时间:
2020-12-16 12:31:52
阅读次数:
2
[1]. Benchmark for Skill Learning from Demonstration: Impact of User Experience, Task Complexity, and Start Configuration on Performance 作者:M. Asif Ra ...
分类:
其他好文 时间:
2020-12-16 11:54:59
阅读次数:
2