cloud-atlas-draft
Search...
Ctrl
K
开发
Python
Python快速起步
python过滤字符
Previous
lambda语法糖:无需定义函数名的简便方法
Next
python百分比
Last updated
5 years ago
Was this helpful?
使用规则替代工具re.sub
Copy
import re
line = re.sub('[!@#$]', '', line)
参考
re.sub
Remove specific characters from a string in python