研究ノート(10):numpyのデータ分析は、メソッドの配列を作成-NumPy -fromfile

すぐに学ぶ:https://edu.csdn.net/course/play/25878/316059?utm_source=blogtoedu

FROMFILE:

      A1 = np.arange(6).reshape(2,3)

      プリント(A1)

      オープン( 'test.data'、 'W')を持つかのように:

               A = np.fromfile(F、DTYPE = INT)

               プリント(変形(2,3))

       オープンで(「test.data」)の場合のように:

                A = np.fromfile(F、DTYPE = INT)

                プリント(a.reshape(2,3))

公開された24元の記事 ウォンの賞賛8 ビュー1171

おすすめ

転載: blog.csdn.net/qq_41739233/article/details/104241515