異常捕獲

def testTry(index,flag=False): stulst=["John","Jenny","Tom"] if flag: try: astu=stulst[index] except IndexError: print("IndexError") return 'Try Test Finished!' else: astu=stulst[inde
相關文章
相關標籤/搜索