添加%matplotlib inline之后,能够直接输出图像
%matplotlib inline
参考资料 https://www.cnblogs.com/chester-cs/p/11825282.html