L = [ ['Apple','Google','Microsoft'], ['Java','Python','Ruby','PHP'], ['Adam','Bart','Lisa'] ] s1 = L[0][0] s2 = L[1][1] s3 = L[2][2] print('''#打印Apple: %s
#打印Python: %s
#打印Lisa: %s'''%(s1,s2,s3))
Sign in to make a reply
johnxu的美好生活
-- coding: utf-8 --
L = [ ['Apple','Google','Microsoft'], ['Java','Python','Ruby','PHP'], ['Adam','Bart','Lisa'] ] s1 = L[0][0] s2 = L[1][1] s3 = L[2][2] print('''#打印Apple: %s
#打印Python: %s
#打印Lisa: %s'''%(s1,s2,s3))