1.字符串 string 的定义 string 的初始化 string 的长度 string 的元素的访问 数组 迭代器 元素的操作 insert() erase() clear() 运算符 连接 + 比较运算符 判断是否相等 常用函数 find() substr() /** * @author: ...
分类:
其他好文 时间:
2021-03-04 13:24:30
阅读次数:
0
在允许nginx服务器中,输入命令: netstat -ano | grep "TIME_WAIT" 可以看到出现很多TIME_WAIT的端口, 输入命令: netstat -an|awk '/tcp/ {print $6}'|sort|uniq -c 可以看到结果: 76 CLOSE_WAIT 3 ...
分类:
其他好文 时间:
2021-03-04 13:10:09
阅读次数:
0
sudo find /etc/ -type f -name "rc*" -exec ls -l {} \;find . -name "t*" -perm 777 -printfind . -mtime -180find /var/log/ -mtime -3 -ok rm {} \; vim 替换: ...
分类:
系统相关 时间:
2021-03-04 13:03:44
阅读次数:
0
在前端,id是唯一的,只属于一个元素。 在python中,元素定位的方法如下: def find_element_by_id(self, id_): """Finds an element by id. :Args: - id\_ - The id of the element to be foun ...
分类:
其他好文 时间:
2021-03-03 12:29:01
阅读次数:
0
网络命令 - ifconfig 1. 查看所有网卡信息 ifconfig -a 2. 查看本机所有IP值信息 ifconfig | grep inet 3. 查看指定网卡IP值 ifconfig '网卡名称' ...
分类:
其他好文 时间:
2021-03-03 12:01:55
阅读次数:
0
问题:pyhton 3安装module报错ERROR: Could not find a version that satisfies the requirement config.paths % pip install config.paths ERROR: Could not find a ve ...
分类:
编程语言 时间:
2021-03-03 11:48:53
阅读次数:
0
查看程序对应的进程号: ps -ef | grep 进程名字 查看端口号所占用的进程: netstat -nltp | grep 端口 或者 netstat -anp | grep 端口 杀死进程 kill pid ...
分类:
系统相关 时间:
2021-03-02 12:19:11
阅读次数:
0
forEach 功能: 循环遍历数组中的每一项,只能遍历数组 特点: 没有返回值,返回值为undefined,并且不可链式调用 示例: map 功能: 循环遍历数组中的每一项,只能遍历数组 特点: 必须return返回值,如果不给return,它会返回一个undefined,返回的值不会影响原数组, ...
分类:
其他好文 时间:
2021-03-02 12:03:26
阅读次数:
0
cd,pwd,ls,cp,mv,history,ps,top,netstat,grep,tar-cvf/xvf,这些是基本的 touch,cat,head,tail,跟文件相关 vim命令 vi,进入文件页, i,插入 esc,切换插入模式和命令模式,然后:wq,保存后退出 最近重点学习了awk命令 ...
分类:
系统相关 时间:
2021-03-02 11:57:34
阅读次数:
0
import requests import re import os from glom import * def get_video(url): requests.packages.urllib3.disable_warnings() session = requests.session() h ...
分类:
其他好文 时间:
2021-03-02 11:50:01
阅读次数:
0