當前位置:股票大全官網 - 股票行情 - 如何用python計算某支股票持有90天的收益率

如何用python計算某支股票持有90天的收益率

def?get(self,?get,?money):

print?“ATM:”

print?“your?money?is?+?“,self.get,”%?a?day

self.today?=?self.money?*?(self.get/100)?+?self.money

print?“now?you?have”,self.today

self.tomorrow?=?self.today?*?(self.get/100)?+?self.today

print?“tomorrow?you?well?have”,self.tomorrow

get(50,?10000)

這個代碼會給妳1天後和2天後的余額,如果要顯示九十天,還請您自己打完