以下程序的执行结果是( )。text = "failure is the price of success, 666."print(re.sub('\s+','-',text))
A. failure-is-the-price-of-success,666.
B. failure-is-the-price-of-success,-666.
C. failure is the price of success,-666.
D. failure is the price of success, 666.
以下程序的执行结果是( )。import retext = "failure is the price of success, 666"match1 = re.match(r"(\w+) (\w+)", text)match1.span(), match1. span(1), match1.span(2)
A. (1, 11), (1, 8), (9, 11)
B. (0, 10), (0, 7), (8, 10)
C. ((1, 11), (1, 8), (9, 11))
D. ((0, 10), (0, 7), (8, 10))