path = "/hy-tmp/data/TCGA-10-1524-01.pt" stats = os.stat(path) file_size = stats.st_size 返回的文件大小的单位是字节(bytes)