用python写一个代码 输出指定的名字

永恒爱恋 4个月前 已收到1个回答 举报

乖巧似猫 2星

共回答了93个问题采纳率:98.2% 评论

mapper=dict(zip(('Tom','Joes','Ki','Tim'),('Teenage','Mutant','Ninja','Turtles'))

)defgetName():whileTrue:name=raw_input("Enteraname:"

)ifnameinmapper:returnnameprint"got:%s"%mapper.get(getName())

22小时前

5
可能相似的问题

热门问题推荐

Copyright © 2024 微短问答 All rights reserved. 粤ICP备2021119249号 站务邮箱 service@wdace.com