net start mysql //连接数据库 mysql -u 用户名 -p 密码 // 登陆 create database 数据库名; //创建数据库 show databases; //查看数据库 use 库民; //使用数据库 drop database 库民; //删除数据库 creat ...
分类:
数据库 时间:
2020-06-26 16:10:08
阅读次数:
64
Controller层添加注解 @Api:用于类;表示标识这个类是swagger的资源 属性名称 数据类型 默认值 说明 value String "" 字段说明 tags String[] "" 标签说明 description String "" 详情描述 basePath String "" ...
分类:
其他好文 时间:
2020-06-26 16:08:16
阅读次数:
386
1 <?php 2 3 4 namespace App\Http\Controllers; 5 6 7 use http\Env\Request; 8 9 class resourceController 10 { 11 public function index(){ // 12 dump("in ...
分类:
其他好文 时间:
2020-06-26 12:59:04
阅读次数:
50
不考虑内存浪费的fastIO 1 #include<bits/stdc++.h> 2 using namespace std; 3 namespace IO 4 { 5 const int len=1<<25; 6 bool flag; 7 char ch,ibuf[len],wbuf[len]; ...
分类:
其他好文 时间:
2020-06-26 10:53:18
阅读次数:
49
众所周知,delete 会释放new出来的单个对象指针指向的内存,这个“释放”的含义就是将这一块内存标记为可用,但并不会删除其指向的值。 这就很有意思了,在Codeblocks中执行如下语句: Score* s=new Score(96,95); delete s; s->show(); 实际上还是 ...
分类:
编程语言 时间:
2020-06-26 01:14:34
阅读次数:
84
mysql show full processlist 查看当前线程处理情况 事发现场 每次执行看到的结果应该都有变化,因为是实时的,所以我定义为:“事发现场”,每次执行就相当于现场的快照。 一般用到 show processlist 或 show full processlist 都是为了查看当前 ...
分类:
数据库 时间:
2020-06-26 01:01:46
阅读次数:
80
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, ...
分类:
其他好文 时间:
2020-06-25 23:47:18
阅读次数:
92
有如下代码:public class Fu { public int num = 1; public void show(){ System.out.println(this.num); } } public class Zi extends Fu{ public int num = 2; } pu ...
分类:
编程语言 时间:
2020-06-25 23:23:54
阅读次数:
69
攻防世界 ics-07 点击之后发现有个项目管理能进,点进去,点击看到源码,如下三段 <?php session_start(); if (!isset($_GET[page])) { show_source(__FILE__); die(); } if (isset($_GET[page]) && ...
分类:
其他好文 时间:
2020-06-25 23:23:27
阅读次数:
229
O(∩_∩)O哈哈~ 在学习 Mysql 的时候又遇到了新问题了 o(╥﹏╥)o 当我在准备为用户授权的时候: grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option; 遇到如下的情况o(╥ ...
分类:
数据库 时间:
2020-06-25 21:32:59
阅读次数:
81