x = ["apple", "banana", "cherry"]
try:
print(x[5])
except IndexError:
print("错误!您正在尝试访问不存在的元素!")
except:
print("发生了其他错误")