我有两个文件,我想从另一个文件中导入一个类。
档案one.py
:
class One:
def printNumber( self, a ):
print (a)
和档案two.py
:
#import One # gives error no module named One
#import one # gives error no module named one
class Two:
# Here I want to call printNumber method from one.py