劉任昌整合開發環境IDE的Jupyter編輯Python程式碼
SPYDER程式碼
程式碼
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():
b1.pack_forget()
tk = Tk()
tk.title("賴青德python建立tkinter視窗使用者介面") #也可以定義視窗名為 window, root課本都如此習慣
canvas = Canvas(tk, width=400, height=400)
canvas.pack()
btn1 = Button(tk, text="賴青德銀行", command = ABC, bg='black',fg='white').pack(side=LEFT)
btn2 = Button(tk, text="賴青德增加", command = XYZ).pack(side=LEFT)
btn3 = Button(tk, text="賴青德刪除", command = kill).pack(side=LEFT)
tk.mainloop()
524影片用標題二顯示H2
525影片用標題二顯示H2
WIKIPEDIA解釋SPYDER
Spyder(前身為Pydee)是一個使用Python語言的開放原始碼跨平台科學運算整合開發環境IDE。Spyder整合了NumPy,SciPy,Matplotlib與IPython,以及其他開源軟體。
期中考前使用SPYDER開發環境,期中考後使用微軟公司提供的VS CODE
https://zhuo-1005.blogspot.com/2025/03/idejupyterpython.html
回覆刪除0325你有自己做嗎?https://zhuo-1005.blogspot.com/2025/03/idejupyterpython.html
刪除0318.動手,就是成長與進步.https://zhuo-1005.blogspot.com/2025/03/button-push-pop-cssin-line-banks.html
311.「期中考筆試重點」應該順便貼上.https://zhuo-1005.blogspot.com/2025/03/blog-post_10.html
304.要用pre.https://zhuo-1005.blogspot.com/2025/03/blog-post.html
225.計算機成功執行.https://zhuo-1005.blogspot.com/2025/02/blog-post.html
https://danny0976790127.blogspot.com/2025/03/pythonipe-jupyterpython.html
回覆刪除https://tzuchenchu.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://chiuerya0515.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://d11117315111.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://gbsddik.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://zhang-1108.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://lin-yujing.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://huuiiiiman.blogspot.com/2025/03/idejavascriptpython.html
回覆刪除https://yangyami.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://winnielee0311.blogspot.com/2025/03/jubyterpython.html
回覆刪除https://zhou-wei-ling.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://sincewayne.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://acdhdwstzws.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://chinenkohana.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://mumeng-ru.blogspot.com/2025/03/325.html
回覆刪除https://zyixnn.blogspot.com/2025/03/idejupyterpython-3-24-2025.html
回覆刪除https://kiannc1201.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
回覆刪除https://xu-bing-wei-0804.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://xuan-ang.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
回覆刪除https://takuto20050803.blogspot.com/2025/03/preborder-5px-blue-dottedh1border-10px.html
回覆刪除https://www.blogger.com/blog/post/edit/4021550438884504581/6542783700177727764?hl=zh-TW
回覆刪除https://sccabout.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://lu-cheng-yin-2024.blogspot.com/2025/03/325_24.html
回覆刪除https://ericfggf554466.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://ericfggf554466.blogspot.com/
刪除https://chrishong9595.blogspot.com/2025/03/idejupyterpython.html
回覆刪除https://slu804387.blogspot.com/2025/04/from-tkinter-import-tkinter-banks-def.html
回覆刪除https://vovo8564513.blogspot.com/2025/04/from-tkinter-import-tkinter-banks-def.html
回覆刪除https://pei940922.blogspot.com/2025/04/idejupyterpython.html
回覆刪除https://chan0528.blogspot.com/2025/04/idejupyterpython.html
回覆刪除https://yangyoyo0125.blogspot.com/2025/04/idejupyterpython.html
回覆刪除https://d11117242.blogspot.com/2025/04/idejupyterpython.html
回覆刪除