S=['Apple','Google','Microsoft'] Q=['Java','Python','Ruby','PHP'] M=['Adam','Bart','Lisa'] L=[S,Q,M] print('S[0]','Q[1]','M[2]')
你把 print('S[0]','Q[1]','M[2]') 改成 print(S[0],Q[1],M[2]) 就行了 加 单引号或双引号 表示是字符串 不加的话 表示 变量名
Sign in to make a reply
芥未丿
S=['Apple','Google','Microsoft'] Q=['Java','Python','Ruby','PHP'] M=['Adam','Bart','Lisa'] L=[S,Q,M] print('S[0]','Q[1]','M[2]')