注册 登录
编程论坛 Python论坛

Python 怎样出矩阵啊,就单位阵

毛毛虫姐姐 发布于 2016-09-25 10:37, 4826 次点击
Python 怎样出矩阵啊,就单位阵
# coding: utf-8

# If you use python 2, uncomment the following line.
from __future__ import print_function

import numpy as np
import matplotlib.pyplot as plt


def warm_up_exercise():
    """热身练习"""
    A = None
    # ====================== 你的代码 ==========================
    # 在下面加入你的代码,使程序返回一个 5x5 的单位矩阵

    # =========================================================
    return A
就像这个,5*5的单位阵
0 回复
1