摘要: 默认参数def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): while True: ok = raw_input(prompt) if ok in ('y', 'ye', 'yes'): ... 阅读全文
posted @ 2015-10-16 15:16 鸟海无涯 阅读(179) 评论(0) 推荐(0) 编辑