L2 = [s.lower() if isinstance(s,str) is True else s for s in L1 ]
看后面的测试,要求把非字符项去掉,你这个是原样输出。^_^
Sign in to make a reply
大咖一直在