猫史档案馆


【Python作品分享】新手自创爱心 by laurent【作品秀】

用户:Laurentn122Laurentn122查看:0 回复:0 评论:0 创建时间:2022-04-30T09:39:23


【作品展示】

center_image

 

【作品介绍】

新手爆肝勿喷

 

【作品源代码】

import numpy as np 
from matplotlib import pyplot as plt 
import math

pi = math.pi

x = np.linspace(-3.3**0.5,3.3*0.5,6001).reshape(-1,1)
y = (x**2)**(1/3)+0.9*np.sqrt(3.3 - x**2)*np.sin(40*pi*x)

plt.plot(x,y,color = "r")
plt.xlim(-3,3)

plt.show()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页