W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
import re str = "The rain in Spain" # 返回所有单词字符的匹配项(a 到 Z 的字母,0-9 的数字,以及下划线 _ 字符): x = re.findall("\w", str) print(x) if (x): print("Yes, there is at least one match!") else: print("No match")