只可见第一块GPU os.environ["CUDA_VISIBLE_DEVICES"] = "0" 转载于:https://www.cnblogs.com/llfctt/p/10563595.html