質問編集履歴

2

内容の追加

2018/12/28 13:31

投稿

yep
yep

スコア45

test CHANGED
File without changes
test CHANGED
@@ -19,6 +19,20 @@
19
19
  #試したこと
20
20
 
21
21
  ```
22
+
23
+ with open('array.txt') as file:
24
+
25
+ filedata = file.read()
26
+
27
+ filedata = filedata.replace('e-0', '')
28
+
29
+ filedata = filedata.replace(' ', ', ')
30
+
31
+ with open(r'array.txt', 'w', encoding='utf-8') as file:
32
+
33
+ file.write(filedata)
34
+
35
+
22
36
 
23
37
  with open('array.txt') as file:
24
38
 

1

内容の明確化

2018/12/28 13:31

投稿

yep
yep

スコア45

test CHANGED
File without changes
test CHANGED
@@ -19,20 +19,6 @@
19
19
  #試したこと
20
20
 
21
21
  ```
22
-
23
- with open('array.txt') as file:
24
-
25
- filedata = file.read()
26
-
27
- filedata = filedata.replace('e-0', '')
28
-
29
- filedata = filedata.replace(' ', ', ')
30
-
31
- with open(r'array.txt', 'w', encoding='utf-8') as file:
32
-
33
- file.write(filedata)
34
-
35
-
36
22
 
37
23
  with open('array.txt') as file:
38
24