贪婪与懒惰 2017-04-10 本文已影响10人 蚂蚁牙齿不黑 Paste_Image.png 贪婪(尽可能多) 例题 取出 aabab中从a开始到最后一个b之间的所有字符 Paste_Image.png 可见贪婪的格式为 a.*b 懒惰(尽可能少) Paste_Image.png