使用规则替代工具re.sub

re.sub

import re
line = re.sub('[[email protected]#$]', '', line)

参考

results matching ""

    No results matching ""