摘要: # The get() method on dicts # and its "default" argument name_for_userid = { 382: "Alice", 590: "Bob", 951: "Dilbert", } def greeting(userid): return "Hi %s!" % name_for_userid.get(... 阅读全文
posted @ 2017-10-01 18:30 Zhentiw 阅读(182) 评论(0) 推荐(0)