AttributeError:'module'对象没有属性
我有两个python模块:
a.py
import bdef hello(): print "hello"print "a.py"print hello()print b.hi()
b.py
import adef hi(): print "hi"
当我跑步时a.py,我得到:
AttributeError: 'module' object has no attribute 'hi'
错误是什么意思?我如何解决它?
繁花不似锦
慕田峪9158850
随时随地看视频慕课网APP
相关分类