通过list的下标访问list的值 >>> A = [1,2,3] >>> A[0] #output: 1 通过list的值访问该值在list中的下标 >>> A = [1,2,3] >>> A.index(1) # output: 0