發表文章

目前顯示的是 4月, 2025的文章

Word File Processing in Python(Python處理Word檔案)

圖片
影片重點 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, until 12 July 2018, when he announced his "permanent vacation" from responsibilities as Python's "benevolent dictator for life" (BDFL); this title was bestow...

盧姵穎javascript網頁BUTTON按鈕ONCLICK事件呼叫CALL函數

物件導向設計OOP=Object-Oriented Programming 主詞subject受詞object東方的oriental id=identity,身分證id card, division區塊,段落 盧姵穎執行 函數名稱()將要執行的程式碼用curly braces圍住。 PYTHON換列就是;區隔指令。PYTHON同一個縮排,就是{}的同一區塊 期中考心得將以前的重點貼上 JAVASCRIPT的字典 dict =new Map([["2303","聯電"],["2330","台積電"],["2880","華南金"],['AAPL','蘋果公司'],['C','花旗銀行'],['T','美國電話電報']]);//宣告配對(字典) PYTHON的字典 dict ={"2303":"聯電","2330":"台積電","2880":"華南金",'AAPL':'蘋果公司','C':'花旗銀行','T','美國電話電報'}

盧姵穎Javascript使用瀏覽器Browser就可以編譯出Interpreting

盧姵穎增加 盧姵穎銀行 刪除串列的最後一個元素 重點 python命令command='執行的程式' Javascript ONCLICK='執行的程式()' 沒必要如此做程式就可以執行,方便在未來maintain後來的python空格與跳行都是命。跳行行就是取代;號,用相同的空格數(縮牌一起)就{} ONCLICK按下滑鼠的事件on click按下

盧姵穎python視窗建構Tk輸入文字Entry視窗字串變數StringVar

圖片
spyder 程式碼 #盧姵穎python註解comment使用# """前後用三個引號可以單引,也可以雙引 """ from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 banks=['摩根大通','美國銀行','中國工商','富國銀行','匯豐銀行','巴黎銀行'] def ABC(): #畫圖 define自訂函數 global b1 #宣告b1是廣域GLOBAL變數,其他函數也可使用 txt = '' for i in range(len(banks)): txt += banks[i] + ' ' b1=Label(canvas,text=txt,font='Arial 20 bold') b1.pack(side=TOP) def XYZ(): #清除視窗的all所有canvas圖 banks.append('三菱銀行') banks.append('台灣銀行') ABC()#結束XYZ之前給它顯示 def kill(): banks.pop()#移除串列banks元素 ABC()#執行自訂函數()(寫在前面) tk = Tk()#建構TK視窗名為tk global bank #宣告網域變數bank bank=StringVar(tk)#命令bank視窗tk tk.title("盧姵穎python建立tkinter視窗使用者介面") #也可以定義視窗名為 window, root課本都如此習慣 canvas = Canvas(tk, width=400, height=400) canvas.pack() enter=Entry(tk,textvariable=bank)#變數 btn1 = Button(tk, text="賴青德銀行", command = ABC, bg='bl...