#劉任昌教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://remonti0119.blogspot.com/2023/04/pythonrange.html
回覆刪除作者已經移除這則留言。
回覆刪除https://xxddai.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.peopo.org/news/622838
刪除https://lin60616.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.peopo.org/news/622838
刪除作者已經移除這則留言。
回覆刪除https://chen1227.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d10917250.blogspot.com/2023/04/pythonrange.html
回覆刪除https://weizhezhantvsdexcr.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d10950132.blogspot.com/2023/04/pythonrange.html
回覆刪除https://kff0787.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.peopo.org/news/622838
刪除https://pengyanyuu.blogspot.com/2023/04/pythonrange.html
回覆刪除https://chenpeiyun910103.blogspot.com/2023/04/pythonrange.html
回覆刪除https://tonydongdo.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.blogger.com/blog/post/edit/6636358029867254966/4011781681613260387
回覆刪除https://d10917217.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d10917206.blogspot.com/2023/04/pythonrange.html
回覆刪除https://fyrjeike.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d10917203.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d10917225.blogspot.com/2023/04/python.html
回覆刪除https://dannyyeh13.blogspot.com/2023/04/pythonrange.html
回覆刪除https://d109173190212.blogspot.com/2023/04/pythonrange.html
回覆刪除作者已經移除這則留言。
回覆刪除https://fyrjeike.blogspot.com/2023/04/pythonrange_20.html
回覆刪除https://10917324.blogspot.com/2023/04/pythonrange.html
回覆刪除https://pse.is/4vxk9s
回覆刪除https://hung927.blogspot.com/2023/04/python.html
回覆刪除https://chienchiwei.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.blogger.com/blog/post/edit/7946957304410713297/7555968448265859276
回覆刪除https://dd10950104.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.peopo.org/news/622838
刪除https://www.blogger.com/blog/post/edit/6353067039179351492/2795487609854758687
回覆刪除https://kingmonkey2020.blogspot.com/2023/04/phthonrange.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://zirujiang0130.blogspot.com/2023/04/pythonrange.html
回覆刪除https://shiunpei.blogspot.com/2023/04/pythonrange.html
回覆刪除作者已經移除這則留言。
回覆刪除作者已經移除這則留言。
回覆刪除https://www.blogger.com/blog/post/edit/4416696326626918600/5546564758379749687
回覆刪除https://ziwei0210.blogspot.com/2023/04/pythonrange.html
回覆刪除https://xiang4427.blogspot.com/2023/04/pythonrange.html
回覆刪除https://tsaihuajaker.blogspot.com/2023/04/pythonrang.html
回覆刪除https://weiwei1108.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.peopo.org/news/622838
刪除https://weishinten.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.facebook.com/robertjcliu/posts/pfbid02GfZ9dGz2FThqaQTNCSXereJM3GyAMrnbYft8wqS3SakoY7GW94YfMMU2CCkHT9o6l
刪除https://aik284267.blogspot.com/2023/04/blog-post.html
回覆刪除https://www.facebook.com/robertjcliu/posts/pfbid02GfZ9dGz2FThqaQTNCSXereJM3GyAMrnbYft8wqS3SakoY7GW94YfMMU2CCkHT9o6l
刪除https://d10950113.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.facebook.com/robertjcliu/posts/pfbid02GfZ9dGz2FThqaQTNCSXereJM3GyAMrnbYft8wqS3SakoY7GW94YfMMU2CCkHT9o6l
刪除https://ruruuu23.blogspot.com/2023/05/phthonrange.html
回覆刪除https://www.facebook.com/robertjcliu/posts/pfbid02GfZ9dGz2FThqaQTNCSXereJM3GyAMrnbYft8wqS3SakoY7GW94YfMMU2CCkHT9o6l
刪除補交https://d10917350.blogspot.com/2023/04/pythonrange.html
回覆刪除https://www.facebook.com/robertjcliu/posts/pfbid02GfZ9dGz2FThqaQTNCSXereJM3GyAMrnbYft8wqS3SakoY7GW94YfMMU2CCkHT9o6l
刪除https://kenyeh123.blogspot.com/2023/05/pythonrange.html
回覆刪除