VS Code截圖 VS Code程式碼 from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 from math import * #從函式庫 math 輸入所有 * 方法 class Regular: def __init__(self, cx, cy, cr, s, t, c, w): #類別共同的設定 self.cx, self.cy, self.cr = cx, cy, cr #取得中心座標cx, cy, 半徑cr self.s, self.t = s, t #取得邊角數目s,t尖銳程度,取代原來的k = s.get() self.c, self.w = c, w #取得顏色c,寬度w self.u = 2 * pi / self.s #使用模組 math 圓周率 pi self.x, self.y = [], [] for i in range( int(self.s * 1.5)): self.x.append(self.cx + self.cr*cos(i*self.u)) self.y.append(self.cy + self.cr*sin(i*self.u)) def draw(self): #類別的方法 for i in range( int(self.s * 1.5) - self.t): canvas.create_line(self.x[i], self.y[i], self.x[i + self.t], self.y[i + self.t], fill = self.c, width = self.w) def show(): #畫圖方法 poly = Regular(cx.get(), cy.get(), cr.get(), s.get(), t.get(), c.get(), w.get()) polyList.append(...
https://cpc920508123.blogspot.com/2023/03/pythondictionary.html
回覆刪除作者已經移除這則留言。
回覆刪除https://d11150115.blogspot.com/2023/03/dictionary-methods-python-has-set-of.html
回覆刪除作者已經移除這則留言。
回覆刪除https://liiuzhewei.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://rtytrdtfg.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://d10917257.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://cindy-javascript.blogspot.com/2023/03/blog-post.html
回覆刪除https://alien1213.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://enchenghu0905.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://tgyhjikolujik2554.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://html-css-javascript-yaoto.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://jasperyang.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://changmasaxciksdj.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://html-css-zz-javascript-java.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://d11150114.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://643gjeytfru4312.blogspot.com/2023/03/python.html
回覆刪除https://iuytjhg5261.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://trequiem.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://wutimothy.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://d11150118.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://hhhaann.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://d11150108.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://efnmklfnmk.blogspot.com/2023/03/w3scholls-w3scholls-keysvalues.html
回覆刪除https://d11150116.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://chenyouzheng0329.blogspot.com/2023/03/pythondictionaries.html
回覆刪除https://www.blogger.com/blog/post/edit/7946957304410713297/700350125472813664
回覆刪除