pattern2 = re.compile(r'\b(?:[\w]{2,}\s){2,}[\w]{2,}(\b,|$)')
pattern1 与 2 的区别是[^\.,] vs [\w]
数据量是 1000 条数据
pattern1 几十秒还不出结果;
pattern2 运行即拿到结果;
为何两者性能差这么多,有人指点一下吗?
Refresh |
This website yooqur.com/thread/88973-1.html is currently offline. Cloudflare\'s Always Online™ shows a snapshot of this web page from the Internet Archive\'s Wayback Machine. To check for the live version, click Refresh. |