回答編集履歴
1
出力箇所の修正
answer
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
# 出力
|
20
20
|
for line in out:
|
21
21
|
fileobj = open("a.log","a")
|
22
|
-
print
|
22
|
+
print >> fileobj, line.rstrip()
|
23
23
|
```
|
24
24
|
|
25
25
|
行数が3桁以上の場合はstr.rjust()の引数を変えて調整できます。
|