📜  python删除括号之间的文本 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:56.407000             🧑  作者: Mango

代码示例3
>>> table = str.maketrans(dict.fromkeys("()"))
>>> string1 = '(this) (is) (a) (test)'
>>> string1.translate(table)
'this is a test'