![](/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.