题解 | #彩灯方阵的变形#

彩灯方阵的变形

https://www.nowcoder.com/practice/d41161944d56480eaeaba8de0ead9235

import pandas as pd
import numpy as np
Matrix = np.genfromtxt("Matrix.csv", delimiter=",",dtype=int)#dtype=int必须要
print(Matrix.flatten(order='F'))
print(Matrix.reshape(4,16))
print(Matrix.reshape(4,4,4))

全部评论

相关推荐

争当牛马还争不上
码农索隆:1.把简历改哈 2.猛投,狠投 3.把基础打牢 这样你在有机会的时候,才能抓住
点赞 评论 收藏
分享
星辰再现:裁员给校招生腾地方
点赞 评论 收藏
分享
06-02 15:53
阳光学院 Java
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务