回答編集履歴
2
Update
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
test
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
```python
|
2
|
-
for i in n:
|
3
|
-
|
2
|
+
for i in n.split('\n'):
|
3
|
+
print(i)
|
4
4
|
```
|
5
|
-
or
|
6
|
-
```python
|
7
|
-
print(n)
|
8
|
-
```
|
9
|
-
|