0
Follow
0
Followers
テンプレートには2つのカテゴリーがあります.
テンプレートデータベースT1
class T1:
def __init__(self):
pass
ext.T1 = T1
テンプレートデータベースT2:
class T2(ext.T1):
def __init__(self):
pass
ext.T2 = T2
テンプレートには2つのカテゴリーがありますが,常に失敗しています.<module> AttributeError: 'Ooo' object has no attribute 'T1'
テンプレートライブラリ間の相互呼び出しができないのか,それとも私の書き方が悪いのか?
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)
Comment
All comments (3)
您好,python策略可以同时引用多个模版类库。但是模版类库之间是隔离的,无法相互引用。
但是您可以用import的方法导入自定义包。
您可以参考:
10 months ago
- 1
