网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

module has no attribute

时间:2024-10-22 05:46:07

1、定义有def printlog1(a, b, c, d):方法,在jupyter中引用

module has no attribute

2、初次引用的时候正常,如果将方法名修改后,再次引用,会报错:调用方法时报错:module 'log忧溲枷茫_function' has no attribute 'printlog1'

module has no attribute

3、解决方法:单击重启按钮,restart the kernel

module has no attribute

4、该问题常发生在方法名修改,或者增加新的方法的时候,使用jupyter报错,但是在pycharm中访问正常,不确定是否跟jupyter版本有关系

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com