#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;/*俄罗斯方块游戏题意:有n个数,从左 ...
分类:
其他好文 时间:
2020-06-09 20:18:52
阅读次数:
45
sudo touch if_interface_up.shsudo chmod 777 if_interface_up.sh sudo vi if_interface_up.sh #!/bin/bashwhile true do result=`cat /sys/class/net/enp0/car ...
分类:
系统相关 时间:
2020-06-09 20:17:09
阅读次数:
66
1.更新源(这步个人觉得官方源还可以,没网上说的那么慢) vim /etc/apt/sources.list.d/parrot.list linux命令 ,按i进入修改模式,修改结束,之后先按esc,再w!,退出 2.使用命令 sudo apt-get update&&sudo apt-get up ...
分类:
其他好文 时间:
2020-06-09 16:29:53
阅读次数:
103
ifconfig:用于显示或设置网络设备 -a: 显示所有接口的配置住处 ifconfig ethX IP/MASK:配置的地址立即生效,但重启网络服务或主机,都会失效; ifconfig ethX [up|down]:启用/禁用该网卡 网络服务: RHEL5: /etc/init.d/networ ...
分类:
系统相关 时间:
2020-06-06 12:48:58
阅读次数:
110
[root@node0 ~]# top 第一行,系统运行时长和平均负载,与uptime输出相同 top - 22:04:46 up 6:27, 2 users, load average: 0.07, 0.02, 0.00 22:04:46 系统当前时间 up 6:27 系统存活时间 2 users ...
分类:
系统相关 时间:
2020-06-05 15:24:27
阅读次数:
105
shell脚本-sed Linux处理文本文件的工具: grep 过滤文件内容 sed 编辑文件内容 awk 正则表达式Regex 正则表达式Regex 匹配单个字符的元字符 . [abc] [a-z] [A-Z] [0-9] [a-zA-Z0-9] [^a-z] [[:alpha:]] [[:up ...
分类:
系统相关 时间:
2020-06-05 00:50:35
阅读次数:
293
通常套路是设$f[x][]$表示$x$节点怎么怎么样(编不下去了)。 例题: luogu P3047 [USACO12FEB]Nearby Cows G 题解 ...
分类:
其他好文 时间:
2020-06-04 21:40:18
阅读次数:
56
#include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e18;/* ...
分类:
其他好文 时间:
2020-06-04 19:38:52
阅读次数:
55
更换电脑后,虽然都是直接把以前的包直接拷贝到新电脑上的,但是python3中无法导入appium:“Cannot set up a python SDK”,如下: 打开Pycharm→file→settings→project interpreter; 发现没有配置,也找不到python 选择一下: ...
分类:
移动开发 时间:
2020-06-04 15:32:48
阅读次数:
317
https://cafbit.com/post/tokio_internals/ December 18, 2017 Tokio is a Rust framework for developing applications which perform asynchronous I/O — an e ...
分类:
其他好文 时间:
2020-06-04 13:37:53
阅读次数:
45