题解 | #配置文件恢复#ShitMountain

配置文件恢复

https://www.nowcoder.com/practice/ca6ac6ef9538419abf6f883f7d6f6ee5

while True:
    try:
        s = input()
        if s in ['r b', 're b', 'b a', 'he he']:
            print('unknown command')
        else:
            if ' ' not in s:
                if s in 'reset':
                    print('reset what')
                else:
                    print('unknown command')
            else:
                l = s.split(' ')
                if l[0] in 'board':
                    if l[1] in 'delete':
                        print('no board at all')
                    elif l[1] in 'add':
                        print('where to add')
                    else:
                        print('unknown command')
                elif l[0] in 'reset':
                    if l[1] in 'board':
                        print('board fault')
                    else:
                        print('unknown commad')
                elif l[0] in 'reboot':
                    if l[1] in 'backplane':
                        print('impossible')
                    else:
                        print('unknown commad')
                elif l[0] in 'backplane':
                    if l[1] in 'abort':
                        print('install first')
                    else:
                        print('unknown commad')
    except:
        break

全部评论

相关推荐

06-12 17:46
门头沟学院 Java
运营你豪哥:来说重点: ​1.项目前置,时间倒序。​​ 2.​项目描述强化结果与量化效果(STAR原则里的R)。​​ ​3.个人技能精炼,明确掌握程度,突出核心。​​ ​4.增加强有力开头的个人总结部分。​​ 5.​优化教育背景(成绩排名)、合并奖项与活动。​​
听劝,我这个简历该怎么改...
点赞 评论 收藏
分享
白火同学:大二有这水平很牛了,可以适当对关键信息加粗一点,比如关键技术、性能指标之类的。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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