03 2022 档案

摘要:1、\转义 ASCII 编码为每个字符都分配了唯一的编号,称为编码值。在 Python 中,一个 ASCII 字符除了可以用它的实体(也就是真正的字符)表示,还可以用它的编码值表示。这种使用编码值来间接地表示字符的方式称为转义字符(Escape Character) 转义字符以\0或者\x开头,以\ 阅读全文
posted @ 2022-03-27 15:03 小鱼小鱼hi 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Python 中不区分大小写的字符串比较 | D栈 - Delft Stack 1、lower() ###将字符串中的所有字符转换为小写字母 2、upper() ###将一个字符串变量的所有字符转换为大写字母 3、lower() ###将字符串中的所有字符转换为小写字母 normal_str1 = 阅读全文
posted @ 2022-03-05 20:16 小鱼小鱼hi 阅读(285) 评论(0) 推荐(0) 编辑
摘要:(13条消息) 学习笔记 | Python同时遍历多个列表一一对应_大虎牙的博客-CSDN博客_python通过列表一一对应 (13条消息) Python同时遍历多个列表一一对应_CJ-404的博客-CSDN博客_python两个列表一一对应 atAPNProfile = [1,2,3,38,39, 阅读全文
posted @ 2022-03-05 20:08 小鱼小鱼hi 阅读(308) 评论(0) 推荐(0) 编辑
摘要:(13条消息) 在正则表达式里面仍然可以用format()等字符串处理函数_吕艳朋的博客-CSDN博客 number = re.compile(r'number: {}'.format(aux_phonenumber)) if fnmatch.fnmatch(result, '*call id: 1 阅读全文
posted @ 2022-03-05 20:02 小鱼小鱼hi 阅读(116) 评论(0) 推荐(0) 编辑
摘要:python 正则 re模块(详细版) - 风,又奈何 - 博客园 (cnblogs.com) 1、re.sub(pattern, repl, string, count=0, flags=0) ##把string中的所有匹配表达式pattern中的地方替换成repl count : 模式匹配后替换 阅读全文
posted @ 2022-03-05 19:32 小鱼小鱼hi 阅读(1106) 评论(0) 推荐(0) 编辑
摘要:1、打印时间戳 格式:2022-03-05 17:04:38.945 import time def get_time_stamp(): ct = time.time() print(ct) ## time.time()返回当前时间的时间戳 local_time = time.localtime(c 阅读全文
posted @ 2022-03-05 17:15 小鱼小鱼hi 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示