常用模块

常用模块 re***** import re # \w 英文字母 数字 下划线 _ a-z A-Z 0-9 word # print(re.findall('\w','[email protected]#_#@@!#')) # 与\w相反 只要是大写字符 就是与小写字符相反的意思 # print(re.findall('\W','[email protected]#_#@@!#')) #匹配数字
相关文章
相关标签/搜索