回答編集履歴

2

Update

2021/11/10 06:33

投稿

melian
melian

スコア20655

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- sports = [(e.find('sport').text, e.find('orgin').text) for e in root.findall('sports/sport')]
7
+ sports = [(e.find('sport').text, e.find('orgin').text) for e in root.findall('.//sports/sport')]
8
8
 
9
9
 
10
10
 

1

Update

2021/11/10 06:33

投稿

melian
melian

スコア20655

test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- sports = [(e.find('sport').text, e.find('orgin').text) for e in root.findall('sport')]
7
+ sports = [(e.find('sport').text, e.find('orgin').text) for e in root.findall('sports/sport')]
8
8
 
9
9
 
10
10