我正在尝试使班级前进,如下所示import QuantLib as ql
calculation_date = ql.Date().todaysDate()
ql.Settings.instance().evaluationDate = calculation_date
day_count = ql.Thirty360()
yield_ts_handle = ql.YieldTermStructureHandle(
ql.FlatForward(calculation_date, -30e-4, day_count)
)
dividend_ts_handle = ql.YieldTermStructureHandle(
ql.FlatForward(calculation_date, 25e-4, day_count)
)
fwd = ql.Forward(
ql.Date(16,5,2022),
ql.UnitedStates(),
ql.Following,
yield_ts_handle,
dividend_ts_handle,
False,
230,
0
)
Python控制台给了我这个fwd = ql.Forward()
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Loic\AppData\Local\Programs\Python\Python38-32\lib\site-packages\QuantLib\QuantLib.py", line 20974, in __init__
raise AttributeError("No constructor defined")
AttributeError: No constructor defined
该类是否从C ++转换为python?