题解 | #字母大小写转换#

字母大小写转换

http://www.nowcoder.com/practice/850ebd30a2a34cfc87199da3fc15786a

while True:
    try:
        list=input().split()
        for i in range(len(list)):
            if list[i].isupper():
                print(list[i].lower())
            else:
                print(list[i].upper())
    except:
        break

list 这里,我用的【i】才能打印出来。??这里不是特别明白

全部评论

相关推荐

点赞 评论 收藏
分享
06-20 19:40
中原工学院 Java
网络存储:十几天不会让你拉人办卡就结束了吧?
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务