回答編集履歴
1
修正
answer
CHANGED
@@ -33,6 +33,7 @@
|
|
33
33
|
special_attack = defence.find_next_sibling()
|
34
34
|
special_defence = special_attack.find_next_sibling()
|
35
35
|
speed = special_defence.find_next_sibling()
|
36
|
+
average = speed.find_next_sibling()
|
36
37
|
|
37
38
|
print(hitpoint.text.split())
|
38
39
|
print(attack.text.split())
|
@@ -40,6 +41,7 @@
|
|
40
41
|
print(special_attack.text.split())
|
41
42
|
print(special_defence.text.split())
|
42
43
|
print(speed.text.split())
|
44
|
+
print(average.text.split())
|
43
45
|
|
44
46
|
if '実数値' in tr.text:
|
45
47
|
hitpoint = tr.find_next_sibling()
|
@@ -57,12 +59,13 @@
|
|
57
59
|
print([td.string for td in speed.find_all('td')])
|
58
60
|
|
59
61
|
>> ◆ ゴリランダーの種族値
|
60
|
-
['HP', '100']
|
62
|
+
>> ['HP', '100']
|
61
|
-
['こうげき', '125']
|
63
|
+
>> ['こうげき', '125']
|
62
|
-
['ぼうぎょ', '90']
|
64
|
+
>> ['ぼうぎょ', '90']
|
63
|
-
['とくこう', '60']
|
65
|
+
>> ['とくこう', '60']
|
64
66
|
>> ['とくぼう', '70']
|
65
67
|
>> ['すばやさ', '85']
|
68
|
+
>> ['平均', '/', '合計', '88.3', '/', '530']
|
66
69
|
|
67
70
|
>> ['HP', '207', '207', '175', '175', '160']
|
68
71
|
>> ['こうげき', '194', '177', '145', '130', '117']
|
@@ -80,7 +83,7 @@
|
|
80
83
|
print(title)
|
81
84
|
box = []
|
82
85
|
elem = tr
|
83
|
-
for i in range(
|
86
|
+
for i in range(7):
|
84
87
|
new_elem = elem.find_next_sibling()
|
85
88
|
box.append(new_elem)
|
86
89
|
elem = new_elem
|