操作方法 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
查找 find . -type f -size +10M -print0 | xargs -0 du -h | sort -nr 删除,指定名字的所有文件 find ./xx -name "xx" -type f -print -exec rm -rf {} \; 计数 ls -l|grep "^- ...
分类:
系统相关 时间:
2021-04-07 11:19:58
阅读次数:
0
题目链接: https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0?tpId=37&tqId=21226&rp=1&ru=%2Fta%2Fhuawei&qru=%2Fta%2Fhuawei%2Fquestion-ranki ...
分类:
编程语言 时间:
2021-04-07 11:06:20
阅读次数:
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
补充命令: tracepath 网址 -- 路由跟踪 netstat –an -a 所有开放端口号查询 -n ip地址查看 netstat –an | grep 80 查看80端口号是否开启 tree 查看目录的结构关系 find 查找文件位置 可用--type b/d/c/p/l/f 参数指定文件 ...
分类:
其他好文 时间:
2021-04-06 15:02:57
阅读次数:
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
[20210401]跟踪sqlplus登录执行了什么.txt--//昨天做了测试,链接http://blog.itpub.net/267265/viewspace-2765851/,顺便记录一下登录过程执行了什么。1.环境:SCOTT@book> @ ver1PORT_STRING VERSION ...
分类:
数据库 时间:
2021-04-01 13:37:37
阅读次数:
0