質問編集履歴

2

誤字

2017/09/19 05:05

投稿

crmy
crmy

スコア13

test CHANGED
File without changes
test CHANGED
@@ -36,6 +36,8 @@
36
36
 
37
37
 
38
38
 
39
+ ```
40
+
39
41
  name = [""]*line_number
40
42
 
41
43
  xxx_coord = [0.0]*line_number
@@ -46,19 +48,21 @@
46
48
 
47
49
 
48
50
 
51
+
52
+
49
53
  for k in range(atom_number):
50
54
 
51
- line = input_file.readline()
55
+ line = input_file.readline()
52
56
 
53
- items = line.split()
57
+ items = line.split()
54
58
 
55
- atom_name[k] = items[0]
59
+ atom_name[k] = items[0]
56
60
 
57
- xxx_coord[k] = float( items[1] )
61
+ xxx_coord[k] = float( items[1] )
58
62
 
59
- yyy_coord[k] = float( items[2] )
63
+ yyy_coord[k] = float( items[2] )
60
64
 
61
- zzz_coord[k] = float( items[3] )
65
+ zzz_coord[k] = float( items[3] )
62
66
 
63
67
  k =+ 1
64
68
 
@@ -92,6 +96,8 @@
92
96
 
93
97
 
94
98
 
99
+ ```
100
+
95
101
 
96
102
 
97
103
 

1

修正

2017/09/19 05:04

投稿

crmy
crmy

スコア13

test CHANGED
File without changes
test CHANGED
@@ -68,13 +68,13 @@
68
68
 
69
69
  if name == "C":
70
70
 
71
- continue
71
+ continue
72
72
 
73
73
  for j in range(line_number):
74
74
 
75
75
  if atom_name == "C":
76
76
 
77
- continue
77
+ continue
78
78
 
79
79
  dx = xxx_coord[i] - xxx_coord[j]
80
80