当前位置:网站首页>Numpy——1. Creation of array
Numpy——1. Creation of array
2022-07-05 07:35:00 【Hair will grow again without it】
Create array
np.array(object, dtype) or np.arange(start, stop, step, dtype)
object: The object of the created array , Can be a single value , list , Cell, etc .
example:
dtype: data type
- Specify the data type
example:2. Adjust the data type
a.astype("i1")3. Modify the number of floating-point numbers
np.round(array, d)
边栏推荐
- Apple animation optimization
- I can't stand the common annotations of idea anymore
- 【idea】Could not autowire. No beans of xxx type found
- Typecho adds Baidu collection (automatic API submission plug-in and crawler protocol)
- "Source code interpretation" famous programmer TJ's only library
- golang定时器使用踩的坑:定时器每天执行一次
- I implement queue with C I
- Simple operation of nixie tube (keil5)
- Leetcode solution - number of islands
- Course learning accumulation ppt
猜你喜欢

Idea to view the source code of jar package and some shortcut keys (necessary for reading the source code)

With the help of Navicat for MySQL software, the data of a database table in different or the same database link is copied to another database table

P3D gauge size problem

Tshydro tool

Chapter 2: try to implement a simple bean container

QT small case "addition calculator"

611. 有效三角形的个数

What is deep learning?

How to deal with excessive memory occupation of idea and Google browser

Pytorch has been installed in anaconda, and pycharm normally runs code, but vs code displays no module named 'torch‘
随机推荐
Basic series of SHEL script (I) variables
Light up the running light, rough notes for beginners (1)
并查集理论讲解和代码实现
And let's play dynamic proxy (extreme depth version)
2022年PMP项目管理考试敏捷知识点(7)
C learning notes
NSIS finds out whether the file exists and sets the installation path
Basic series of SHEL script (II) syntax + operation + judgment
CADD course learning (5) -- Construction of chemosynthesis structure with known target (ChemDraw)
纯碱是做什么的?
[idea] common shortcut keys
GBK error in web page Chinese display (print, etc.), solution
I can't stand the common annotations of idea anymore
Eclipse project recompile, clear cache
What is Bezier curve? How to draw third-order Bezier curve with canvas?
The mutual realization of C L stack and queue in I
DelayQueue延迟队列的使用和场景
QT small case "addition calculator"
Basic knowledge of public security -- FB
R language learning notes 1


2. Adjust the data type
3. Modify the number of floating-point numbers 