摘要: import re n = input() for i in range(int(n)): str = input() if re.match(r'A*PA+TA*',str): a = re.split(r'[P|T]',str)if (a[0] * len(a[1]) == a[2]): pri 阅读全文
posted @ 2019-11-25 22:42 王清河 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 公共部分代码 /* common.h */ #ifndef COMMON_H #define COMMON_H #include <arpa/inet.h> #include <ctype.h> #include <dirent.h> #include <errno.h> #include <fcn 阅读全文
posted @ 2019-11-25 21:23 王清河 阅读(4848) 评论(2) 推荐(1) 编辑
摘要: 打印root可以使用可执行文件数。 echo "root's bins: $(find ./ -type f | xargs ls -l | sed '/-..x/p' | wc -l)" 命令解释 1.echo 输出后面双引号的的内容 2. find ./ -type f 查找当前目录下文件类型为 阅读全文
posted @ 2019-11-25 14:37 王清河 阅读(142) 评论(0) 推荐(0) 编辑