下面的示例代码演示了如何在Python 2 中使用 string.translate() 方法从字符串中删除数字。 from string import digits string = 'abcd1234efg567' ...
確定! 回上一頁