当前位置:网站首页>Four basic data types
Four basic data types
2022-07-28 14:47:00 【Youth is short!】
# use numpy Realize the expression of basic data
import numpy as np
# Scalar ( One dimensional tensor )
a = 1
print('a:',a)
print('')
# vector ( Two dimensional tensor )
b = np.array([1,2])
print('b:',b,'\n','b_shape:',b.shape)
print('')
# matrix ( Three dimensional tensor )
c = np.array([[1,1],[1,2]])
print('c:',c,'\n','c_shape:',c.shape)边栏推荐
- Redis configuration file explanation
- Thoughts on the construction of some enterprise data platforms
- 多商户商城系统功能拆解17讲-平台端订单列表
- Installing redis in Linux
- 2022 safety officer-a certificate operation certificate examination question bank simulated examination platform operation
- OKR与GRAD
- Redis redis use in jedis
- 基于 MinIO 对象存储保障 Rancher 数据
- When Xcode writes swiftui code, it is a small trap that compiles successfully but causes the preview to crash
- Brief introduction of diversity technology
猜你喜欢

Thoughts on the construction of some enterprise data platforms
![[ecmascript6] async and await](/img/3c/c7de42ad572dc95b188243c02dd228.png)
[ecmascript6] async and await

使用Weka与Excel进行简单的数据分析

58 sub station Anju, broker marketing management platform login interface encryption reverse

Store and guarantee rancher data based on Minio objects

OKR与GRAD

How to reduce the resolution of only 3D camera but not UI camera

Hcip day 12

面试官:ThreadLocal使用场景有哪些?内存泄露问题如何避免?

Focus on differentiated product design, intelligent technology efficiency improvement and literacy education around new citizen Finance
随机推荐
Hcip day 12
看了就会的 Rainbond 入门教程
我正在使用中的博客创作工具
十、时间戳
Three methods to disassemble the rotation array
How to make the characters in the photos laugh? HMS core video editing service one click smile function makes people smile more naturally
如何有效进行回顾会议(上)?
&0xffffffff(0x08)
Penguin side: why not recommend using select *?
35道MySQL面试必问题图解,这样也太好理解了吧
linux安装mysql
Node文件操作
(function(global,factory){
国产数据库的红利还能“吃”多久?
Pointers and arrays (7)
Installing MySQL on Linux
js的实例化方式
Metersphere -- Open Source continuous testing platform
Brief introduction of diversity technology
JS instantiation method