回答編集履歴

2

Update

2022/03/17 01:55

投稿

melian
melian

スコア19825

test CHANGED
@@ -1,4 +1,4 @@
1
1
  ```python
2
- for i in n.split('\n'):
2
+ for i in n.rstrip().split('\n'):
3
3
  print(i)
4
4
  ```

1

Update

2022/03/17 01:52

投稿

melian
melian

スコア19825

test CHANGED
@@ -1,9 +1,4 @@
1
1
  ```python
2
- for i in n:
3
- print(i, end='')
2
+ for i in n.split('\n'):
3
+ print(i)
4
4
  ```
5
- or
6
- ```python
7
- print(n)
8
- ```
9
-