#劉任昌教python設窗程式設計 from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 from math import * #從函式庫 math 輸入所有 * 方法 class Regular: #定義類別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()) ...
作者已經移除這則留言。
回覆刪除https://pengyanyuu.blogspot.com/2023/04/iv.html
回覆刪除https://remonti0119.blogspot.com/2023/04/iv.html
回覆刪除https://lin60616.blogspot.com/2023/04/iv.html
回覆刪除https://kff0787.blogspot.com/2023/04/blog-post.html
回覆刪除https://d10917217.blogspot.com/2023/04/iv.html
回覆刪除https://d10950132.blogspot.com/2023/04/iv.html
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/6636358029867254966/4201217395059630516
回覆刪除貼網址,不是你編輯的頁面
刪除https://zirujiang0130.blogspot.com/2023/04/iv.html
回覆刪除https://xiang4427.blogspot.com/2023/04/iv.html
回覆刪除https://kingmonkey2020.blogspot.com/2023/04/iv.html
回覆刪除https://shiunpei.blogspot.com/2023/04/iv.html
回覆刪除https://dannyyeh13.blogspot.com/2023/04/iv.html
回覆刪除https://kenyeh123.blogspot.com/2023/04/100-100-0.html
回覆刪除https://tsaihuajaker.blogspot.com/2023/04/100-100-0.html
回覆刪除https://fyrjeike.blogspot.com/2023/04/iv.html
回覆刪除https://aik284267.blogspot.com/2023/04/iv.html
回覆刪除https://10917324.blogspot.com/2023/04/iv.html
回覆刪除https://d109173190212.blogspot.com/2023/04/iv.html
回覆刪除https://d10917203.blogspot.com/2023/04/iv.html
回覆刪除https://d10917206.blogspot.com/2023/04/iv.html
回覆刪除https://www.blogger.com/blog/post/edit/6353067039179351492/685972233000548185
回覆刪除https://www.blogger.com/blog/post/edit/7946957304410713297/6925054255048778255
回覆刪除https://dd10950104.blogspot.com/2023/04/iv.html
回覆刪除https://d10917250.blogspot.com/2023/04/iv.html
回覆刪除https://chienchiwei.blogspot.com/2023/04/412.html
回覆刪除https://d10917225.blogspot.com/2023/04/iv.html
回覆刪除https://weizhezhantvsdexcr.blogspot.com/2023/04/iv.html
回覆刪除https://chenpeiyun910103.blogspot.com/2023/04/iv.html
回覆刪除補交https://d10917350.blogspot.com/2023/04/blog-post_13.html
回覆刪除老師,您好我目前專職交易正學習數據分析
回覆刪除想請教您在哪間學校任教
或是有什麼方法可以上您的課或連繫您呢
期待您的回覆,謝謝您