def huitu_host(nodes,total):
x = np.arange(len(nodes))
plt.figure(figsize=(9,5))
plt.xticks(x,nodes)
plt.bar(x,total,width = 0.5,facecolor = 'yellowgreen',edgecolor = 'white')
for x,y in zip(x,total):
plt.text(x,y,'%.f' % y,ha="center", va="bottom")
plt.show()
return

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
光阴似箭催人老,日月如移越少年。