Discuss / Python / 交作业

交作业

Topic source
L2 = [a.lower() if isinstance(a,str) else a for a in L1]

我怎么觉得你们都错了.... 没说要去掉18吧...

Jason_Yadi

#3 Created at ... [Delete] [Delete and Lock User]
# 测试:
print(L2)
if L2 == ['hello', 'world', 'apple']:
    print('测试通过!')
else:
    print('测试失败!')

这个作业的测试结果,没有数字啦


  • 1

Reply