林辰訊HTML-CSS-JavaScript-Python-Java
<iframe width="560" height="315" src="https://www.youtube.com/embed/0gyqrbnl7mM?si=AjJFm7SZEiKp-Vcw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> <iframe src=" https://zh.wikipedia.org/ zh-tw/%E4%BA%8C%E5%88%86%E6% B3%95 " width="100%" height="600" frameborder="0"> </iframe> pmt = [0,0,0,0] #劉任昌程式設計586設定串列list pmt[0]=float(input('躉繳金額: ')) for nper in range(1,4): pmt[nper] = float(input('第'+str(nper)+'期回收: ')) def npv(rate): y = - pmt[0] for j in range(1,4): y = y + pmt[j]/(1+rate)**j return y a, b, gap, f = 0.0, 1.0, 9.0, 9.0 maxerror = 0.000001 loopNumber = 1 while (gap > maxerror and abs(f) > maxerror and loopNumber ...
留言
張貼留言