python 过滤中文、英文特殊符号
python2: allname = re.sub("[\s+\.\!\/_,$%^*(+\"\')]+|[+——()?【】“”!,。?、~@#¥%……&*()]+", "",allname)
python3:re.sub("[\s+\.\!\/_,$%^*(+\"\']+|[+——!,。?、~@#¥%……&*()]+".encode('utf-8').decode('utf-8'), "".encode('utf-8').decode('utf-8'),line)
参考:https://blog.csdn.net/nlite827109223/article/details/62237733?utm_source=distribute.pc_relevant.none-task