摘要: 1 #方法的参数定义和默认参数的定义 2 def ask_ok(prompt, retries=4, complaint='Yes or no, please!'): 3 while True: 4 ok = input(prompt) 5 if ok in ('y', 'ye', 'yes'): 6 ... 阅读全文
posted @ 2015-11-09 16:50 小泥巴2008 阅读(558) 评论(0) 推荐(0)