import re
somethings = "Rise to vote, sir." somethings=somethings.lower()somethings=re.sub("[\s+\.\!\/_,$%^*(+\"\‘]+|[+——!,。??、[email protected]#¥%……&*()]+", "",somethings)print(somethings)
原文地址:https://www.cnblogs.com/skbarcode/p/10802891.html
时间: 2024-10-15 12:26:58