0
のPython 3.6を持つクラスをインポートする方法10のPython:Windows上のライブラリ
コード:
myClass.Py
**from Option_A import Stuff**
class foo:
**from Option_B import Stuff**
def __init__(self):
**from Option_C import Stuff**
Stuff.bar()
def do_it_to_it(self, input)
return Stuff.bar(input)
myProgram.Py
from myClass import foo
ClassInstance = foo()
ClassInstance.bar("Hello")
エラー:私は「
veオプションA、B、Cを試しましたが、どちらも動作できません。
ご協力いただきありがとうございます!
-E