标签:print int sea nbsp search 字符 style ext arc
import re # 判断是否包含英文 str = "text文本" contain_en = bool(re.search(‘[a-z]‘, str)) if contain_en: print("包含英文字符") else: print("不包含英文字符")
标签:print int sea nbsp search 字符 style ext arc
原文地址:https://www.cnblogs.com/jumpkin1122/p/11516944.html