保留1位小数(统计总大小时更显精确):

siz = (format((float(size) / 1024 / 1024 / 1024),'.1f'))