时间:2024-10-25 08:10:54
1、新建一个 GreedyMode.py 文件,如图所示:
3、定义一个字符串变量 string,并且接收一段字符串,如图所示:
5、使用 search() 函数根据正则表达式进行匹配,代码如图所示: