正则表达式合理的情况:
import reDATA = "Hey, you - what are you doing here!?"print re.findall(r"[w']+", DATA)# Prints ['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']
欢迎分享,转载请注明来源:内存溢出
正则表达式合理的情况:
import reDATA = "Hey, you - what are you doing here!?"print re.findall(r"[w']+", DATA)# Prints ['Hey', 'you', 'what', 'are', 'you', 'doing', 'here']
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)