mapper = dict(zip( ('Tom', 'Joes', 'Ki', 'Tim'), ('Teenage', 'Mutant', 'Ninja', 'Turtles') )
) def getName(): while True: name = raw_input("Enter a name: "
) if name in mapper: return name print "got:%s" % mapper.get(getName()) 用Python里的Dictionary
首页 >
mapper = dict(zip( ('Tom', 'Joes', 'Ki', 'Tim'), ('Teenage', 'Mutant', 'Ninja', 'Turtles') )
) def getName(): while True: name = raw_input("Enter a name: "
) if name in mapper: return name print "got:%s" % mapper.get(getName()) 用Python里的Dictionary
如何制作问道手游脚本辅助 - python - 前端,python运算符替换 | 如何制作问道手游脚本辅助 - python - 前端,python运算符替换 ...
有python培训吗 - python - 前端,python check函数 | 有python培训吗 - python - 前端,python check函数 ...