操作方法 with open('文件名',mode='读写追加',encoding='编码方式') f.close=没有用with就要写他关闭 可搂s 只读 r 读写 r+ bs类型 rb=不用写编码方式 r+b=要在写的后面加 f.write(写的内容.encode('编码方式')) f.read ...
分类:
编程语言 时间:
2021-04-07 11:29:29
阅读次数:
0
第一次遇到有9题的div2。。。 A题 排序后,伸展两边 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=2e5+10; const i ...
分类:
其他好文 时间:
2021-04-06 15:06:31
阅读次数:
0
6.3较之前有些不同 sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxl ...
分类:
其他好文 时间:
2021-04-06 14:03:16
阅读次数:
0
PAT (Advanced Level) Practice 1027 Colors in Mars (20 分) 凌宸1642 题目描述: People in Mars represent the colors in their computers in a similar way as the E ...
分类:
其他好文 时间:
2021-04-05 12:15:31
阅读次数:
0
##第一部分Mem行: total 内存总数: 15.7G used 已经使用的内存数: 15.6G free 空闲的内存数: 93M shared 当前已经废弃不用,总是0 buffers Buffer 缓存内存数: 298M cached Page 缓存内存数:14G 对操作系统来讲是Mem的参 ...
分类:
其他好文 时间:
2021-04-05 11:44:12
阅读次数:
0
ps 命令的作用是显示进程信息的; | 符号,是个管道符号,表示ps 和 grep 命令同时执行; grep 命令是查找(Global Regular Expression Print),能使用正则表达式搜索文本,然后把匹配的行显示出来; ps命令有一些参数: -e : 显示所有进程 -f : 全格 ...
分类:
其他好文 时间:
2021-04-02 13:33:41
阅读次数:
0
DateTime dt_now = DateTime.Now;//获取当前时间 while (dt_now.AddMinutes(1) > DateTime.Now) { //Todo:执行自己的操作 await Task.Delay(1000);//延迟1s } View Code 相对比较优雅一 ...
. shell逻辑表达式 #!/bin/bash FILE_BASED_ENCRYPTION="true" if [ "$FILE_BASED_ENCRYPTION" == "true" ]then echo "if: first one" || echo "if: second one"else ...
分类:
系统相关 时间:
2021-03-30 13:52:37
阅读次数:
0
1.选择Analyze——》Run Inspection by Name...或者使用快捷键Ctrl+Alt+Shift+I 2.在弹框中输入:unused declaration 3.弹框默认选择 4.等待下方读条结束会自动弹出Inspection Results弹窗 5.对没有用到的方法和变量提 ...
分类:
其他好文 时间:
2021-03-30 13:30:44
阅读次数:
0
因为要求所有的状态,所以暴力超时 那么想想能否计算贡献。 我们对于每一个xi,xi+1,他们对于每一个fi的状态都有不同的贡献,因此我们枚举情况后用差分数组维护贡献 #include<bits/stdc++.h> typedef long long ll; using namespace std; ...
分类:
其他好文 时间:
2021-03-29 12:48:27
阅读次数:
0