判断字符串是否含有英文

时间:2019-08-19 15:13:32   收藏:0   阅读:94
if re.search(‘[a-z]‘,creator): creator = creator.replace("、", ‘;‘).replace(",", ‘;‘).replace(";;;;;", ‘;‘).replace(";;;;", ‘;‘).replace(";;;", ‘;‘).replace(";;", ‘;‘).replace("‘", ‘"‘).strip() print (creator)

原文:https://blog.51cto.com/14265660/2430706

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!