摘要: ls = ['a', 'b', 'c'] # method 1 for i in range(len(ls)): print(i, end = ' ') # print(i) print(ls[i]) # method 2 for s in ls: print(ls.index(s), end=' 阅读全文
posted @ 2022-11-08 11:06 倔犟的石头 阅读(28) 评论(0) 推荐(0)