目录
1. 绘图函数 - 绘制 sin 函数
# 请绘制sin函数曲线
import matplotlib
matplotlib.use("Agg") # 设置平台绘图环境,勿删
import matplotlib.pyplot as plt
# 请在此添加代码实现函数细节 #
# ********** Begin *********#
x = [0, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360]
y= [0, 0.5, 0.866, 1, 0.866, 0.5, 0, -0.5, -0.866, -1, -0.866, -0.5, 0]
plt.plot(x,y,'.')
# ********** End **********#
plt.savefig