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

字母大小写转换

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】才能打印出来。??这里不是特别明白

全部评论

相关推荐

点赞 评论 收藏
分享
10-02 19:29
已编辑
浙江科技大学 运营
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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