开发者社区 问答 正文

pycharm中import pylab,使用plot会报错?报错

pycharm中import pylab,使用plot,提示AttributeError: 'module' object has no attribute 'plot'

在终端运行时,不会报错,这是为什么?

展开
收起
爱吃鱼的程序员 2020-06-09 16:37:19 1045 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    我也是他说pylab没有plot

     

    你试一下frommatplotlibimportpylab 

     或者 

    frommatplotlibimportpyplot

     

     

    2020-06-09 16:37:38
    赞同 展开评论
问答分类:
问答标签:
问答地址: