- 博客(3)
- 收藏
- 关注
原创 【无标题】python类对向
class Rectangle(): length=3.5 width=5 def getRect(self): print('这个矩形的长是:%.2f,宽是:%.2f' % (self.length,self.width)) def setRect(self): print('请输入矩形的长和宽...') self.length = float(input('长: ')) self.widt.
2022-03-14 18:32:46 569
原创 python绘图
# 导入相关的包import matplotlib.pyplot as plt #画图用到的包import numpy as np #数值计算的包import pandas as pd #文件操作、字符串操作等包import os #系统操作的包import warningswarnings.filterwarnings('ignore')# 让matplotlib的图表在jupyternotebook中.
2021-06-26 10:56:45 511 2
原创 python解决线性代数问题
###转置import numpy as npimport pandas as pda=np.array([[1,2,3],[4,5,6],[7,8,9]])b=np.array([[1,2,1],[4,5,3],[8,1,6]])print(a)print(a.T)#A的转置print(a.T.T)#A的转置的转置还是A本身[[1 2 3] [4 5 6] [7 8 9]][[1 4 7] [2 5 8] [3 6 9]][[1 2 3] [4 5 6] [7 8 9.
2021-06-23 15:56:25 903 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人