L=['Hello','world',18,'Apple',None]
[s.lower() if isinstance(s,str)==1 else s for s in L]
Sign in to make a reply
算稳态误差先判稳
L=['Hello','world',18,'Apple',None]
[s.lower() if isinstance(s,str)==1 else s for s in L]