回答編集履歴
1
Update
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Animal = []
|
3
3
|
for i in range(7):
|
4
4
|
lst = globals().get(f'list_{i}', None)
|
5
|
-
if lst is not None and isinstance(lst, list) and l
|
5
|
+
if lst is not None and isinstance(lst, list) and lst:
|
6
6
|
Animal.append(lst[0])
|
7
7
|
|
8
8
|
print(Animal)
|