順序查找(python)

根據python中列表查找某一個數python aList=[1,2,3,4,5,6,3,8,9] sign=False #初始值爲沒找到 x=int(input("請輸入要查找的整數:")) for i in range(len(aList)): if aList[i]==x: print("整數%d在列表中,在第%d個數"%
相關文章
相關標籤/搜索