0
Follow
0
Followers
¿Puedo hacer referencia a otra biblioteca de plantillas en una biblioteca de plantillas?
Created 2025-09-05 17:05:13
3
395
Por ejemplo, tengo dos bibliotecas de plantillas:
La biblioteca de clases de plantillas T1
class T1:
def __init__(self):
pass
ext.T1 = T1
La biblioteca de clases de plantillas T2:
class T2(ext.T1):
def __init__(self):
pass
ext.T2 = T2
Cuando estaba usando, seleccioné dos librerías de plantillas, pero siempre me equivoqué.<module> AttributeError: 'Ooo' object has no attribute 'T1'
Por favor, ¿es que el sistema no admite que las librerías de plantillas se llamen entre sí, o es que tengo un problema de ortografía?
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
