一、问题 只想要216.8973那个数。 二、解决方法 1、单个tensor tensor.item() 就可以得到216.8973。 2、多个tensor tensor.tolist() 完美解决,欢迎点赞收藏评论~