Discuss / Python / 最简短作业

最简短作业

Topic source

平仔-C

#1 Created at ... [Delete] [Delete and Lock User]

L = ['Hello', 'World', 18, 'Apple', None] l = [s.lower() for s in L if isinstance(s, str)] print(l)


  • 1

Reply