x=[2,1,1]
print(x.index(1))
结果为1
posted on 2023-02-19 09:46  FrostyForest  阅读(58)  评论(0编辑  收藏  举报