将bar()方法中的left 改成 x 即可。 有关python绘图可参见 : https://blog.csdn.net/weixin_44566432/article/details/107183212