test

2020-01-13 16:20:58 浏览数 (1)

作者:明天依旧可好 工具:Jupyter notebook 环境:Python 3.6.5


与上一份代码相比我们仅仅是去掉了plt.plot()中参数x。

代码语言:javascript复制
import matplotlib.pyplot as plt
import numpy as np

n = ["hubei","huangshi","wuhang","beijing","shanghai"]
m = [3,1,5,4,7]
plt.plot(n, m,color='red')

0 人点赞