是波波呀

关注

'string' has no attribute 'maketrans'

是波波呀

关注

阅读 97

2023-03-16


# 去掉abc
s2 = 'abc12303023xyz'
table = str.maketrans("", "", "abc")
print(s2.translate(table))


相关推荐

双井暮色

AttributeError: 'module' object has no attribute 'maketrans'

双井暮色 92 0 0

炽凤亮尧

module 'sklearn' has no attribute 'svm'

炽凤亮尧 104 0 0

m逆光生长

ResultSet object has no attribute ‘text‘

m逆光生长 82 0 0

悄然丝语

module ‘asyncio‘ has no attribute ‘run‘

悄然丝语 179 0 0

求阙者

module ‘tensorflow‘ has no attribute ‘Session‘

求阙者 39 0 0

影子喵喵喵

'list' object has no attribute 'get'

影子喵喵喵 44 0 0

何以至千里

attribute: attribute is not a string value报错解决:Android中对比string程序

何以至千里 82 0 0

是归人不是过客

AttributeError: ‘KeyedVectors‘ object has no attribute ‘wv‘

是归人不是过客 184 0 0

南陵王梁枫

AttributeError: ‘RDD‘ object has no attribute ‘toDF‘

南陵王梁枫 124 0 0

yeamy

Pycharm module ‘serial‘ has no attribute ‘Serial‘

yeamy 23 0 0

精彩评论(0)

0 0 举报