Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个句子,想检查一个模式是否存在。我正在寻找模式'......从......切换到......'这样的模式是否存在返回真否则为假。如何在 python 中为其编写正则表达式?
re.match('switch.*from.*to', txt)