摘要:
DQL select 字段列表 from 表名列表 where 条件列表 group by 分组字段列表 having 分组后条件列表 order by 排序字段列表 limit 分页参数 基本查询 1. 查询多个字段 select 字段1,字段2,字段3... from 表名; select * 阅读全文
摘要:
cv2.approxPolyDP() 使用了Douglas-Peucker算法: 输入一组曲线点集合S,输出折线点集合T 流程: 0. 设阈值thresh,取A的起点A和终点B加入T 1. 取S中的一点C,使之距离A和B连成的直线最远 2. 如果距离大于阈值,则将C加入T 3. 分别递归AC与CB 阅读全文
摘要:
DDL 数据库操作 show databases; create database 数据库名; use 数据库名; select database(); #查看当前处于哪个数据库中 drop database 数据库名; 查询当前数据库所有表 show tables; 查询表结构 desc 表名; 阅读全文
摘要:
链接:https://pan.baidu.com/s/1JA9am_5r7E0ycn36eeB4FQ?pwd=i5ps 提取码:i5ps 阅读全文
摘要:
#pragma comment(linker,"/STACK:1024000000,1024000000") #include <bits/stdc++.h> using namespace std; const int maxn = 1e6; int Rand_Partition(vector<i 阅读全文
摘要:
贪心思想: 每次选取未覆盖元素最多的子集 线性规划思想: 以0-1线性规划解整数规划,将结果变量的取值大于1/f的对应子集放入C中 可证明C为可行解且近似比为f import random import matplotlib.pyplot as plt from pulp import * impo 阅读全文
摘要:
单向A*: v> 算法思想: 每次都选择权值最小的结点拓展并记录路径, 如果选择结点为终点, 则找到一条代价最小路径 算法使用优先队列实现 #include <iostream> #include <cstring> #include <cmath> #include <utility> #incl 阅读全文
摘要:
枚举凸包: 算法思想: 每四个点判断是否有其中一个点在另外三个点的包围内, 如果是, 则标记为内点,重复选取,直至没有内点 #include <iostream> #include <cmath> #include <cstring> #include <vector> #include <util 阅读全文
摘要:
进行以下测试: 运行ifconfig,只显示lo或wifi网卡 运行ifconfig -a,能显示有线网卡 运行ifconfig enp7s0 up后使用ifconfig能显示有线网卡,但是仍然没有有线网 解决方法: sudo gedit /usr/lib/NetworkManager/conf.d 阅读全文
摘要:
xshell远程登陆一下 sudo apt install xserver-xorg-input-all sudo reboot 因此一定要先保证xshell能连上,还有网络 阅读全文