qq_45950431的博客一、要求:使用正则表达式提取字符串中的电话号码 基本思路:使用模块re的findall()函数在字符串中查找所有符合特定模式的内容 import re text = 'my phone number is 456789-5556, yours is 5653-7898, his is ...
微笑伴你而行的博客假设有一段英文“I am a teacher,I am man,and I am 38 years old.I am not a busInessman.”,其中有单词buslnessman中间的字母“i”误写为“I”,请编写程序使用正则表达式进行纠正。如果后面 k 个字母超出字母表的...