摘要:
import numpy as np def steady_distribution(A, b, max_iter=100): y = A @ b count = 1 while not (y == b).all() and count < max_iter: print(y) b = y y = 阅读全文
摘要:
题目描述 难度中等 将一个给定字符串 s 根据给定的行数 numRows ,以从上往下、从左到右进行 Z 字形排列。 比如输入字符串为 "PAYPALISHIRING" 行数为 3 时,排列如下: P A H N A P L S I I G Y I R 之后,你的输出需要从左往右逐行读取,产生出一个 阅读全文