代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
"""
date: Tue Dec 11 15:33:44 2018
python: Anaconda 3.6.5
author: kanade
email: kanade@blisst.cn
"""
import numpy as np
a = np.arange(1, 9)
print('a: ', a)
b = a.reshape(2, 4)
print('b: ', b)
c = b.reshape(2, 2, 2)
print('c: ', c)
d = c.ravel()
print('d: ', d)
e = c.flatten()
print('e: ', e)
a += 10
print(a, b, c, d, e, sep='\n#')
a.shape = (2, 4)
print('a: ', a)
a.resize(2, 2, 2)
print('a: ', a)
f = b.transpose()
print(f)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。