1、数据库编程
(1)创建表
(2)插入一条/多条数据
(3)查询/修改数据
2、绘制等高线、三维图
import matplotlib.pyplot as plt import numpy as np x=np.linspace(-10,10,100) y=np.linspace(-10,10,100) X,Y=np.meshgrid(x,y) Z=np.sqrt(X**2+Y**2) plt.contourf(X,Y,Z) plt.contour(X,Y,Z) plt.show()
import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D X=[1,1,2,2] Y=[3,4,4,3] Z=[1,100,1,1] figure=plt.figure() ax=Axes3D(figure) ax.plot_trisurf(X,Y,Z) plt.show()