源代码
import re #Return a list containing every occurrence of "ai": str = "China is a great country" x = re.findall("a", str) print(x)
运行结果