大佬们,求助一下,我运行之后啥也没打印,修改哪里可以了,还是说得像答案那样子写
# Enter a code
'首先,谢谢你有帮我解答问题的想法'
List1 = ['Alice', 66, 'Bob', True, 'False', 100]
for item in List1:
a = type(item)
if a == 'int' and a % 2 == 0:
print(item)
# Enter a code
'首先,谢谢你有帮我解答问题的想法'
List1 = ['Alice', 66, 'Bob', True, 'False', 100]
for item in List1:
a = type(item)
if a == 'int' and a % 2 == 0:
print(item)
2022-08-04
举报