Skip to content

Commit

Permalink
python代码不合适
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyangyang04 committed Dec 11, 2024
1 parent 1a47aea commit ac6dfbc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions problems/kamacoder/0054.替换数字.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ac6dfbc

Please sign in to comment.