Skip to content

Commit ac6dfbc

Browse files
python代码不合适
1 parent 1a47aea commit ac6dfbc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

problems/kamacoder/0054.替换数字.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,6 @@ func main(){
288288

289289

290290

291-
### python:
292-
```Python
293-
class Solution:
294-
def change(self, s):
295-
lst = list(s) # Python里面的string也是不可改的,所以也是需要额外空间的。空间复杂度:O(n)。
296-
for i in range(len(lst)):
297-
if lst[i].isdigit():
298-
lst[i] = "number"
299-
return ''.join(lst)
300-
```
301291
### JavaScript:
302292
```js
303293
const readline = require("readline");

0 commit comments

Comments
 (0)