添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

what is the solution n, p = [int(x) for x in input().split()]

In a matrix, or 2-d array X, the averages (or means) of the elements of rows is called row means. Given a 2D array, return the rowmeans. Input Format First line: two integers separated by spaces, the first indicates the rows of matrix X (n) and the second indicates the columns of X (p) Next n lines: values of the row in X Output Format An numpy 1d array of values rounded to the second decimal. 1.5 1 2 2.9 Sample Output [1.25 2.45]

11th Nov 2021, 8:38 AM
Zaid Zren
Zaid Zren - avatar
4 Answers