本文共 102 字,大约阅读时间需要 1 分钟。
# 去掉abc s2 = 'abc12303023xyz' table = str.maketrans("", "", "abc") print(s2.translate(table))
转载地址:http://nbvr.baihongyu.com/