![](/img/trans.png)
[英]Best way to load a Pillow Image object from binary data in Python?
[英]Which is the best way to manage binary data from Fortran to python?
我想开始使用python的功能来管理Fortran数据。 在Fortran90中,直接将结果写入二进制即可。 例如,我将数组保存在二进制文件中,我想读取它并在python中进行一些统计。 正确的做法是什么?
fortranfile模块提供了一种非常方便的读取二进制Fortran文件的方式。 需要numpy 。
该页面可能会有所帮助: http : //stromberg.dnsalias.org/~strombrg/converting-binary.html
简而言之,最好避免使用二进制数据,但是该页面仍在讨论如何处理它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.