摘要:
Python 中不区分大小写的字符串比较 | D栈 - Delft Stack 1、lower() ###将字符串中的所有字符转换为小写字母 2、upper() ###将一个字符串变量的所有字符转换为大写字母 3、lower() ###将字符串中的所有字符转换为小写字母 normal_str1 = 阅读全文
posted @ 2022-03-05 20:16
小鱼小鱼hi
阅读(297)
评论(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
阅读(321)
评论(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
阅读(121)
评论(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
阅读(1161)
评论(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
阅读(57)
评论(0)
推荐(0)

浙公网安备 33010602011771号