1
codefever 2022-05-16 11:35:32 +08:00 1
心型线
python 画图(这只是其中一种,有好几种画法) import matplotlib.pyplot as plt import numpy as np import math i = np.linspace(-math.pi,math.pi) x=2*(np.sin(i)-np.sin(2*i)/2) y=2*(np.cos(i)-np.power(np.cos(i),2)) plt.plot(x,y) plt.show() |
2
sarices 2022-05-16 11:50:28 +08:00
想起小时候玩中华学习机的时光,我记得好像叫 LOGO 语言
|