源代码
import re str = "China is a great country" x = re.search(r"\bC\w+", str) print(x.span())
运行结果