data = bytes([ ]) with open("output.ttf", "wb") as f: f.write(data) print("TTF 文件已生成")