题目详情
单选题 import re pattern = r"dog" text = "I have a dog and a cat." match = re.search(pattern, text) if match: print("Match found!") else: print("Match not found.") 上述代码输出什么
A. Error: 're' module not found
B. Match found
C. Match not found
D. Error: invalid regular expression

学科:Python程序设计
时间:2023-10-22 15:23:00
相关题目
相关作业
