程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[P13 Python basics] numpy Basics

編輯:Python

Numpy Basics

  • 1 Numpy Import
  • 2 ndarray
  • 3 Common functions arange,linspace
  • 4 section , restructure , Transposition

Numpy amount to Python Of matlab

1 Numpy Import

2 ndarray


One dimensional array

Two dimensional array


3 Common functions arange,linspace

linspace From beginning to end num Number , And the linear average cutting

4 section , restructure , Transposition



Take out the first two lines

Take out 1,2 Column

reshape
take 3 That's ok 3 Column , convert to 1 That's ok 9 Column


Transposition



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved