import torchprint(torch.__version__)#注意是双下划线>>>import torch>>>torch.version.cuda#输出一个 cuda 版本torch.cuda.is_available()