以下代码使用Python正则表达式查找给定字符串中的重复数字. 示例. import re result = re.search(r'(\d)\1{3}','54222267890' ) print result.group(). 输出结果.
確定! 回上一頁