OSError: [Errno 22] Invalid argument: '../checkpoints/a_0428_20:21:39.pth' 我们要把: : : 改为- - - 就像name = time.strftime(prefix+'%m%d_%H-%M-%S.pth') 就好了