if repeat == 'no' or repeat == 'NO':不能直接repeat == 'no' or 'NO': 这样他们是两个表达式,而不是一个这样式repeat == 'no' 和 ‘NO’ 两个表达式,'NO' 是字符串,存在,转出布尔就是 Ture ,所有不管你输出no或者yes,他都满足条件,执行if语句