在python列表中,我们可以使用list.index(somevalue)。 pytorch怎么做到这一点?例如:a = [1,2,3] print(a.index(2))然后,输出1。
確定! 回上一頁