diff --git a/problems/kamacoder/0054.替换数字.md b/problems/kamacoder/0054.替换数字.md index 443b8bfb..de0ab1a3 100644 --- a/problems/kamacoder/0054.替换数字.md +++ b/problems/kamacoder/0054.替换数字.md @@ -288,16 +288,6 @@ func main(){ -### python: -```Python -class Solution: - def change(self, s): - lst = list(s) # Python里面的string也是不可改的,所以也是需要额外空间的。空间复杂度:O(n)。 - for i in range(len(lst)): - if lst[i].isdigit(): - lst[i] = "number" - return ''.join(lst) -``` ### JavaScript: ```js const readline = require("readline");