在github中,我怎么能找到自给定时间以来对分支所做的所有更改?我也需要列表的输出。我和github一起玩,但我没弄明白怎么做。
答案 0 :(得分:2)
您可以使用git whatchanged
示例:
yields_list = []
rhs_list = []
def f(yields):
for bond in bonds:
rhs = 0
bond_cashflow_series = bond.to_cash_flows().amounts
vals_fromseries = bond_cashflow_series.values
for i in range(0, len(vals_fromseries), 1):
rhs = rhs + vals_fromseries[i]/(1+yields)**(i+1)
return rhs_list.append(rhs - bond.price)
yields_0 = 0.2
list_required = scipy.optimize.newton(f, yields_0)