《Python编程:从入门到实践》---项目2
第15章 生成数据
15-1 立方:
import matplotlib.pyplot as plt
'''
x_values = [1, 2, 3, 4, 5]
y_values = [x**3 for x in x_values]
plt.scatter(x_values,y_values,s=100)
#plt.plot(x_values,y_values, linewidth...
原创
2019-03-13 19:30:39 ·
1349 阅读 ·
1 评论