Get value at list/array index or "None" if out of range in Python. Try: try: return the_list[i] except IndexError: return None. Or, one liner:
確定! 回上一頁