03 2023 档案
摘要:import numpy as np import matplotlib.pyplot as plt a= np.arange(0,3*np.pi,0.5) b= np.sin(a) plt.plot(a,b) plt.show() 一般容易出现import matplotlib as plt的误写
阅读全文
摘要:初始化类的时候出现了takes no arguments 一般这种问题都是因为初始化函数的问题,例如 def init(self): def int(self,name): def init_(self,name): def __init(self,name): 都是比较常见的问题 正确的写法是 d
阅读全文

浙公网安备 33010602011771号