是波波呀

关注

'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

m逆光生长

ResultSet object has no attribute ‘text‘

m逆光生长 82 0 0

炽凤亮尧

module 'sklearn' has no attribute 'svm'

炽凤亮尧 105 0 0

影子喵喵喵

'list' object has no attribute 'get'

影子喵喵喵 45 0 0

悄然丝语

module ‘asyncio‘ has no attribute ‘run‘

悄然丝语 179 0 0

求阙者

module ‘tensorflow‘ has no attribute ‘Session‘

求阙者 39 0 0

何以至千里

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

何以至千里 84 0 0

余寿

AttributeError: module 'enum' has no attribute 'IntFlag'

余寿 110 0 0

雅典娜的棒槌

AttributeError: module ‘statsmodels‘ has no attribute ‘ols‘

雅典娜的棒槌 159 0 0

你带来了我的快乐

AttributeError: ‘NoneType‘ object has no attribute ‘get‘

你带来了我的快乐 186 0 0

精彩评论(0)

0 0 举报