题海让大学四年没有难题
白天模式登陆

题目详情

单选题 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程序设计课程封面

学科:Python程序设计

时间:2023-10-22 15:23:00

Copyright © 2022 津ICP备2021001502号