發表文章

邱煜翔Python_Javascript網路執行_EXCEL_IRR二分法

圖片
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 maxerror and gap > maxerror): if ( f>0 ): a = c else: b = c gap = b-a; print('報酬率: ', c) print('淨現值: ', f) print('迴圈次數: ', loopNumber) 心得:這學期學會網路程式語言JAVASCRIPT也學會人工智慧使用最多的PYTHON語言

.邱煜翔二分法求內部報酬率

圖片
head/head, body/body畫蛇添足,可拿掉,因為部落格架構已經下這些命令 躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 劉任昌學習程式設計程式碼如下 head/head, body/body畫蛇添足,可拿掉,因為部落格架構已經下這些命令 躉繳 第1期 第2期 第3期 注意,包含首期躉繳的現金流量都大於0。 輸出: 報酬率: 淨現值: 迴圈次數: 邱煜翔學習程式設計程式碼如下

Javascript執行三角函數繪圖

圖片
Javascript在網頁就可以執行不需要開啟Spyder 邱鈺祥執行

Word File Processing in Python(Python處理Word檔案)邱煜翔

圖片
  embed嵌入(bed床,放入床上,嵌入鑽戒)  影片重點 Let's develop brains. 作文,在捷運讓座let給老弱婦孺。 yield (投降, 收益) Yield seats to elderly YTM=Yield to Maturity=到期收益率 nominal yield=coupon rate=票面利率 利用python編輯edit建立create word 檔案 Process 處理....procedure程序 SOP  python命令,給文件新增加一個段落 document.add_paragraph ('文字內容',格式) 網頁javascript命令 document.create_element('P'); 維基百科python了解 Python was conceived [ 構想, concept觀念, cognitive psychology認知心理學 ]in the late 1980s [ 42 ]   by Guido van Rossum at   Centrum Wiskunde & Informatica   (CWI) in the   Netherlands ; it was  conceived  as a successor [ 繼任者 ] to the   ABC   programming language, which was  inspired  [啟發,提示] by   SETL , [ 43 ]   capable of   exception handling   and interfacing with the   Amoeba   operating system. [ 12 ]   Python implementation began in December 1989. [ 44 ]   Van Rossum assumed sole responsibility for the project, as the lead developer, unti...

邱煜翔HTML按鈕BUTTON事件ONCLICK

物件導向設計OOP=Object-Oriented Programming 主詞subject受詞object東方的oriental id=identity,身分證id card, division區塊,段落 邱煜翔 函數名稱()將要執行的程式碼用curly braces圍住。 PYTHON換列就是;區隔指令。PYTHON同一個縮排,就是{}的同一區塊。

邱煜翔Javascript物件導向Python物件導向

物件導向設計OOP=Object-Oriented Programming 主詞subject受詞object東方的oriental id=identity,身分證id card, division區塊,段落 .方法get()是取得對應的值,功能同字典 dict.get(s1.code)從dict字典取得索引為s1.code的值

邱煜翔Javascript與Python比較

圖片
全球市場價值最大的銀行 按鈕PUSH增加 按鈕POP執行自訂函數kill 按鈕POP執行kill呼叫其他函數 CSS也可以in-line 寫在這裡成為網頁的一部分,執行後,可以看到。function kill_SHOW執行二指令 banks.pop()指令移除banks串列的最後一個元素ABC()去執行函數ABC()。P代表paragraph段落 以上程式碼 <STYLE>   BUTTON{COLOR:WHITE;BORDER-RADIUS:20PX;BACKGROUND-COLOR:BLACK;}   H1{COLOR:WHITE;BACKGROUND-COLOR:BLACK;TEXT-ALIGN:CENTER;PADDING:5PX;}   P{BACKGROUND-COLOR:GRAY; FONT-SIZE:24PX;COLOR:WHITE;} </STYLE> <button onclick="ABC()">全球市場價值最大的銀行</button> <button onclick="X()">按鈕PUSH增加</button> <button onclick="kill()">按鈕POP執行自訂函數kill</button> <button onclick="kill_SHOW()">按鈕POP執行kill呼叫其他函數</button> <P id="SHOW"></P> CSS也可以in-line <script> banks=['摩根大通','美國銀行','中國工商銀行','富國銀行','匯豐銀行','巴黎銀行']; function ABC()  {//第一個函數function ABC() let x = '';//定義字串x內容空白 for (let i in banks)//javascript for loop () python不需要     { x ...