from tkinter import * space, slash, backslash, cr = ' ', '/', '\\', '\n' def row1(k,m):#定義自訂函數 for i in range(1, k+1): for ii in range(m): for j in range(k-i): f.write(space) f.write(slash) for j in range(2*i-2): f.write(space) f.write(backslash) for j in range(k-i): f.write(space) f.write(cr) def row2(r,m): for i in range(1, k+1): for ii in range(m): for j in range(i-1): f.write(space) f.write(backslash) for j in range(2*k-2*i): f.write(space) f.write(slash) for j in range(i-1): f.write(space) f.write('\n') tk = Tk()#使用tkinter套件,建立視窗,輸入k,m,n tk.title("大正妹視窗使用者介面GUI") #也可以定義視窗名為 window, root課本都如此習慣 canvas = Canvas(tk, width=800, height=500) canvas.pack() kmn = [1,2,3,4,5] k = input(...
https://wilson11122.blogspot.com/2024/06/blog-post.html
回覆刪除https://tustning.blogspot.com/2024/06/canvas.html
回覆刪除https://yun0205.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://hui026.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://whitexd.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://keiime.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://ctz642895.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://kk0725.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://xi715.blogspot.com/2024/06/blog-post.html
回覆刪除https://kitty930923.blogspot.com/2024/06/canvas.html
回覆刪除https://ziyun040818.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://rrrrr-eeeee.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://rainhtmlcssjavascriptjavapython.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://htmlcssjavascriptjavapython.blogspot.com/2024/06/youtube-video-player.html
回覆刪除https://oscarliu1688.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://yuziting.blogspot.com/2024/06/canvas.html
回覆刪除https://aks8704100.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://ryanareryan.blogspot.com/2024/06/canvas.html
回覆刪除https://yuechen613.blogspot.com/2024/06/pythoncanvas.html
回覆刪除https://addison030.blogspot.com/2024/06/pythoncanvas.html
回覆刪除