附加到Maketrans表吗?

时间:2018-07-16 05:18:32

标签: python-3.x

是否可以将项目追加到maketrans()表中? (Python 3.7)

我有这行代码,可以为常规的“ Ascii标点符号”创建翻译表。现在,我想添加更多的Unicode符号...

table = str.maketrans('', '', string.punctuation)

谢谢!

0 个答案:

没有答案