# 去掉abc
s2 = 'abc12303023xyz'
table = str.maketrans("", "", "abc")
print(s2.translate(table))
'string' has no attribute 'maketrans'
阅读 97
2023-03-16
# 去掉abc
s2 = 'abc12303023xyz'
table = str.maketrans("", "", "abc")
print(s2.translate(table))
相关推荐
精彩评论(0)