帮忙看一下为什么不对
def toUppers(L):
for x in L :
if isinstance(x,str):
s=x.upper()
return s
print toUppers(['Hello', 'world', 101])
def toUppers(L):
for x in L :
if isinstance(x,str):
s=x.upper()
return s
print toUppers(['Hello', 'world', 101])
2016-09-05
举报