防抖 任务频繁触发的情况下,只有任务触发的间隔超过指定间隔的时候,任务才会执行。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wi ...
分类:
其他好文 时间:
2020-06-24 23:41:58
阅读次数:
70
Docker常用命令 帮助命令 # 显示 Docker 版本信息 docker version # 显示系统信息,包括镜像和容器的数量 docker info # 查看帮助文档 帮助文档地址:https://docs.docker.com/reference/ docker [命令] --help ...
分类:
其他好文 时间:
2020-06-24 23:41:46
阅读次数:
48
1.launch.json { "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", // 配置名称,将会在启动配置的下拉菜单中显示 "type": "cppdbg", // 配置类型,cppdbg对应cpptools提供 ...
分类:
编程语言 时间:
2020-06-24 23:32:38
阅读次数:
102
struct msghdr 结构体 struct iovec { /* Scatter/gather arrayitems */ void *iov_base; /*Starting address */ size_t iov_len; /* Number of bytes to transfer* ...
分类:
其他好文 时间:
2020-06-24 23:25:42
阅读次数:
75
Upload <form method="post" action="http://localhost:8080/thirdTry/uploadServlet" enctype="multipart/form-data"> Profile Image: <input type="file" name ...
分类:
其他好文 时间:
2020-06-24 21:55:15
阅读次数:
69
JS 数字型三个特殊值 Infinity ,代表无穷大,大于任何数值 -Infinity ,代表无穷小,小于任何数值 NaN ,Not a number,代表一个非数值 isNaN的使用: isNaN(x): x是数字型的时候(也就是它不是非数字) 它的返回值为 false x是非数字型的时候 它的 ...
分类:
Web程序 时间:
2020-06-24 20:04:45
阅读次数:
84
依赖包: <dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> <version>2.4.0</version> </dependency> 代码: package json.js ...
分类:
Web程序 时间:
2020-06-24 19:43:35
阅读次数:
45
题意: 给出同一个数 \(n\) \((1\leq n \leq 10^9)\),两个人玩游戏,有两种操作: 1.除以一个大于 $1$ 的奇数因子 2.当 \(n>1\) 时,可以减 $1$ 无法操作的人输。 传送门 分析: 题目想复杂了,首先可以发现: \(n=1\),必输; \(n=2\),必胜 ...
分类:
其他好文 时间:
2020-06-24 19:32:55
阅读次数:
79
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re ...
分类:
其他好文 时间:
2020-06-24 19:28:08
阅读次数:
55
数据类型 int(number 数字) str print("hello,world!","dasw",sep"") # 输出 define(定义) # shell(命令行) # arguments (参数) 数据结构 list(列表) tuple(元组) dict(字典) set(集合) 函数 类 ...
分类:
其他好文 时间:
2020-06-24 17:57:55
阅读次数:
87