🌈 搜索
📅  最后修改于: 2022-03-11 14:46:38.931000             🧑  作者: Mango
import re _, count = re.subn(r'hello', '', astring, flags=re.I) print('Found', count, 'occurrences of "hello"')