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