質問編集履歴

1

スクリプトの修正

2018/12/19 05:30

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -50,15 +50,13 @@
50
50
 
51
51
  line2 = f2.readlines()
52
52
 
53
- for list in line2:
53
+ path = 'file2'
54
54
 
55
- path = 'file2'
55
+ with open(path) as f:
56
56
 
57
- with open(path) as f:
57
+ line = f.readlines()
58
58
 
59
- line = f.readlines()
60
-
61
- line.insert(2, list)
59
+ line.insert(2, line2)
62
60
 
63
61
 
64
62