摘要: 命令命令详解 history / history 10 显示终端执行过的命令 / 显示最近10条终端执行过的命令 shuf -n 500 taget_file 在目标文件中随机选取500条数据 cut -d ' ' -f 2 taget_file 在目标文件中提取第二列的内容, -f表示需要提取的字 阅读全文
posted @ 2021-04-02 00:25 写代码要小辛 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 判断 命令 含义 示例 字符串 str.lower() 对字符串中的大写字符转为小写 数组 字典 其他 imp.reload 重新载入模块 importlib.import_module(py文件名) 可以通过变量导入模块 判断 isinstance(object,classinfo) 判断 一个对 阅读全文
posted @ 2021-05-26 14:19 写代码要小辛 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 方法 含义 备注 查询 distinct 字段 对字段去重 select distinct name, id from table exists(select语句) 表示是否存在这个里,存在返回true,反之返回false not exists:表示不在返回true,反之返回false select 阅读全文
posted @ 2021-04-13 20:35 写代码要小辛 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 方法 含义 示例 字符串类方法合集 explode(" ",$str) 把字符串根据空格打散为数组 in_array($str,array()) 检测目标字符 是否在数组的值中,不检测键,如果有则返回true,反之返回false strpos($str,find,start[开始搜索的位置,可选]) 阅读全文
posted @ 2021-04-02 16:29 写代码要小辛 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 设置地址: vim /etc/nginx/nginx.conf access.log : 访问日志 -- nginx只要接到请求,在这个日志下就有相关的访问者的信息。 error.log : 错误日志 -- 如果nginx报错了,在这个日志下会有相关的错误信息。 如果公司网络报错了,要优先检查ngi 阅读全文
posted @ 2019-09-08 23:31 写代码要小辛 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 系统组件安装: sudo apt-get install xxx python组件: pip install xxx -i 下载源 阅读全文
posted @ 2019-09-08 22:25 写代码要小辛 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi 阅读全文
posted @ 2019-09-03 19:12 写代码要小辛 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1、学习网站 菜鸟教程: https://www.runoob.com/python3/python3-tutorial.html 百易教程:https://www.yiibai.com 博客:https://blog.csdn.net GitHub:https://github.com 微软Bin 阅读全文
posted @ 2019-09-02 22:47 写代码要小辛 阅读(135) 评论(0) 推荐(0) 编辑