上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 51 下一页
摘要: awk 是一款文本处理工具,可以使用它来分割字符串。以下是 awk 常用的字符串分割操作: 1、根据空格分割字符串 awk '{print $1,$2,$3}' filename.txt 这个命令会读取 filename.txt 文件中的每一行,然后将每一行按照空格分割成多个部分,并打印出前三段。 阅读全文
posted @ 2023-06-21 17:12 代码诠释的世界 阅读(4218) 评论(0) 推荐(0)
摘要: 1、 常用正则表达式 1、匹配中文:[\u4e00-\u9fa5] 2、英文字母:[a-zA-Z] 3、数字:[0-9] 4、匹配中文,英文字母和数字及下划线:^[\u4e00-\u9fa5_a-zA-Z0-9]+$ 同时判断输入长度: [\u4e00-\u9fa5_a-zA-Z0-9_]{4,10 阅读全文
posted @ 2023-06-21 16:59 代码诠释的世界 阅读(105) 评论(0) 推荐(0)
摘要: 1、官方文档 paramiko · PyPI Welcome to Paramiko’s documentation! — Paramiko documentation 2、安装 pip install paramiko 3、示例 import paramiko # 建立一个sshclient对象 阅读全文
posted @ 2023-06-21 16:51 代码诠释的世界 阅读(134) 评论(0) 推荐(0)
摘要: 一、场景 使用paramiko连接ssh服务器,处理回显,然后报错 二、处理方法 问题代码 # encoding = chardet.detect(data) # if encoding.get('encoding'): # encode = encoding.get('encoding') # e 阅读全文
posted @ 2023-06-21 16:33 代码诠释的世界 阅读(788) 评论(0) 推荐(0)
摘要: 1、解决方法 pip install comtypes 参考链接: (88条消息) Windows下import pywifi库报错:ModuleNotFoundError: No module named ‘comtypes‘原因排查_广东上大分的博客-CSDN博客 阅读全文
posted @ 2023-06-21 16:26 代码诠释的世界 阅读(847) 评论(0) 推荐(0)
摘要: 参考链接: (87条消息) 删除 commit 的三种方法_删除commit_用户Jack的博客-CSDN博客 阅读全文
posted @ 2023-06-21 16:24 代码诠释的世界 阅读(99) 评论(0) 推荐(0)
摘要: 一、场景 由于做接口自动化测试, 根据接口文档,编写接口用例,报错415, Unsupported Media Type 二、HTTP请求的媒体类型 以text开头的媒体格式类型: text/html: HTML格式。 text/plain:纯文本格式。 text/xml: XML格式。 以imag 阅读全文
posted @ 2023-06-21 15:58 代码诠释的世界 阅读(2047) 评论(0) 推荐(0)
摘要: 1、问题 自己使用pycharm写用例, 今天突然打开之后不能右键运行用例 2、处理方法 打开编辑配置 依次删除相关选项 然后重启编辑器,右键运行即可 阅读全文
posted @ 2023-06-21 15:49 代码诠释的世界 阅读(523) 评论(0) 推荐(0)
摘要: 一、官网 https://git-scm.com/docs/git-submodule 文章写的也很详细了,就不重复写了,以官网资料为准 参考链接: git之submodule的使用 - chrislzy - 博客园 阅读全文
posted @ 2023-06-13 16:03 代码诠释的世界 阅读(15) 评论(0) 推荐(0)
摘要: 一、场景 运行pyqt报错TypeError: decorated slot has no signature compatible with RecorderPlayerProxy.sig_mode_update[object] 二、代码 @Slot(int) def update_mode(se 阅读全文
posted @ 2023-06-13 15:42 代码诠释的世界 阅读(215) 评论(0) 推荐(0)
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 51 下一页