0
Follow
0
Followers
예를 들어, 저는 두 개의 템플릿 라이브러리를 가지고 있습니다.
T1 템플릿 저장소
class T1:
def __init__(self):
pass
ext.T1 = T1
템플릿 라이브러리 T2:
class T2(ext.T1):
def __init__(self):
pass
ext.T2 = T2
저는 두 개의 템플릿 라이브러리를 선택했지만 항상 오류가 발생했습니다.<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
