Python线性搜索if语句不起作用

时间:2017-01-09 06:41:44

标签: linear

线性搜索工作正常,直到if语句的最后一行,如果找不到搜索,应打印“找不到值”....

click here for screen capture

1 个答案:

答案 0 :(得分:0)

尝试更改while语句

while index<len(myList) and found==False
相关问题