摘要: import re # 定义要搜索的字符串 test_string = "hellooooWorld12345Pythonisfuun!!!" # 定义正则表达式 regex_pattern = r'(.)\1{4}' # 在字符串中搜索正则表达式 match = re.search(regex_p 阅读全文
posted @ 2023-06-13 19:02 AngDH 阅读(247) 评论(0) 推荐(0) 编辑