From ac6dfbcd204d0b92a6ef394d69743bef4ca4b74a Mon Sep 17 00:00:00 2001 From: programmercarl <826123027@qq.com> Date: Wed, 11 Dec 2024 11:53:03 +0800 Subject: [PATCH] =?UTF-8?q?python=E4=BB=A3=E7=A0=81=E4=B8=8D=E5=90=88?= =?UTF-8?q?=E9=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/kamacoder/0054.替换数字.md | 10 ---------- 1 file changed, 10 deletions(-) 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");