作用:userdel 命令用于删除当前系统存在的账户 1 用法:userdel [选项] 登录 2 3 选项: 4 -f, --force force some actions that would fail otherwise (-f 强制删除用户,即使用户当前是登录状态) 5 e.g. remo ...
分类:
其他好文 时间:
2021-04-20 15:45:21
阅读次数:
0
通过这个题熟悉了下iota的用法,vector自定义排序(根据另一个数组来排当前的数组) 优先队列对pair数据的处理方式,很好的一道题 1 class Solution { 2 public: 3 using PII = pair<int,int>;//type def 4 5 vector<in ...
分类:
编程语言 时间:
2021-04-20 15:19:37
阅读次数:
0
一.选择器 1.基本 名称 用法 描述 #id $("#myDiv"); 根据给定的ID匹配一个元素 element $("div"); 根据给定的元素标签名匹配所有元素 .class $(".myClass"); 根据给定的css类名匹配元素 * $("*") 匹配所有元素 selector1,s ...
分类:
Web程序 时间:
2021-04-20 15:07:11
阅读次数:
0
写一个符合 Promise A+ 规范的 Promise 类型定义 // MyPromise.ts type resType = (value?: any) => void; type rejType = (reason?: any) => void; type executorType = (re ...
分类:
其他好文 时间:
2021-04-20 14:26:37
阅读次数:
0
分为在线应用和下载到本地应用两种; 在线应用更好用; 用法 阿里图库登录成功后,将所需图标添加到购物车,然后点击购物车,添加到项目 点击生成在线图标 将链接加上‘http:',用link标签引入到html;如果用@import 语法,可以不用补,会自动加 ...
分类:
其他好文 时间:
2021-04-20 14:10:24
阅读次数:
0
Makefile常用万能模板(包括静态链接库、动态链接库、可执行文件) 本文把makefile 分成了三份:生成可执行文件的makefile,生成静态链接库的makefile,生成动态链接库的makefile。 这些makefile都很简单,一般都是一看就会用,用法也很容易,只需要把它们拷贝到你的代 ...
分类:
其他好文 时间:
2021-04-20 14:07:04
阅读次数:
0
string 容器 常见用法 string s1 = "Hello" string s2("Hello") string s3(s2) string s4 = s3 getline(cin,s)// 从cin中读取一行给s s.empty()// 空?true:false; s.size()//返回 ...
分类:
其他好文 时间:
2021-04-19 15:53:19
阅读次数:
0
mysql开启命令行日志(可以记录source等的日志) mysql> tee hello.log mysql>select now() ; mysql>exit; //退出mysql 客户端 查看 hello.log 文件内容如下: mysql> select now(); 用法如下: Step ...
分类:
数据库 时间:
2021-04-19 15:24:58
阅读次数:
0
import numpy as np a = np.array([i for i in range(5)]) b = np.array([i for i in range(5, 10)]) print('a:', a) print('b:', b) c = np.stack([a,b], axis= ...
分类:
编程语言 时间:
2021-04-16 12:25:35
阅读次数:
0
merge函数的作用是:将两个已经排好序的序列合并为一个有序的序列。 函数参数:merge(first1,last1,first2,last2,result,compare); firs1t为第一个容器的首迭代器,last1为第一个容器的末迭代器; first2为第二个容器的首迭代器,last2为容 ...
分类:
其他好文 时间:
2021-04-16 11:46:46
阅读次数:
0