L2 = [x.lower for x in L1 if isinstance(x,str)]
print(L2)
为何我的结果是这个?
[<built-in method lower of str object at 0x0000000D0CF6C928>, <built-in method lower of str object at 0x0000000D0CF6C8B8>, <built-in method lower of str object at 0x0000000D0CF6CA40>]
雷小呈
L2 = [x.lower for x in L1 if isinstance(x,str)] print(L2)
为何我的结果是这个?
[<built-in method lower of str object at 0x0000000D0CF6C928>, <built-in method lower of str object at 0x0000000D0CF6C8B8>, <built-in method lower of str object at 0x0000000D0CF6CA40>]