def toUppers(L): for x in L: if isinstance(x,str)==True: return x.upper() print toUppers(['Hello', 'world', 101]) 查看完整描述