擅长:python、mysql、java
<p>您可以使用<a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.bar" rel="noreferrer">^{<cd1>}</a>:</p>
<pre><code>plt.bar(np.arange(len(s)),s)
plt.show()
</code></pre>
<p>它变成了下面。这是你的预期产量吗?</p>
<p><a href="https://i.stack.imgur.com/FKjHu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FKjHu.png" alt="enter image description here"/></a></p>