#劉任昌教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://d10917350.blogspot.com/2023/06/blog-post.html
回覆刪除https://d10917203.blogspot.com/2023/06/blog-post.html
回覆刪除https://ruruuu23.blogspot.com/2023/06/blog-post_15.html
回覆刪除https://zirujiang0130.blogspot.com/2023/06/spreadsheetforever-changed-how-people.html
回覆刪除https://d10917206.blogspot.com/2023/06/blog-post.html
回覆刪除https://d10917225.blogspot.com/2023/06/blog-post.html
回覆刪除https://tsaihuajaker.blogspot.com/2023/06/electronic-spreadsheet-forever-changed.htm
回覆刪除https://tsaichingchung.blogspot.com/2023/06/blog-post.html
回覆刪除https://d10950132.blogspot.com/2023/06/blog-post.html
回覆刪除https://d10950113.blogspot.com/2023/06/blog-post.html
回覆刪除https://www.blogger.com/blog/post/edit/322902110241494727/4614388783283963302
回覆刪除https://remonti0119.blogspot.com/2023/06/blog-post.html
回覆刪除https://pengyanyuu.blogspot.com/2023/06/blog-post.html
回覆刪除https://kingmonkey2020.blogspot.com/2023/06/blog-post.html
回覆刪除https://d10917217.blogspot.com/2023/06/20230616.html
回覆刪除https://aik284267.blogspot.com/2023/06/blog-post.html
回覆刪除https://xxddai.blogspot.com/2023/06/blog-post.html
回覆刪除https://lin60616.blogspot.com/2023/06/blog-post.html
回覆刪除https://fyrjeike.blogspot.com/2023/06/blog-post.html
回覆刪除https://chienchiwei.blogspot.com/2023/06/blog-post.html
回覆刪除https://xiang4427.blogspot.com/2023/06/blog-post.html
回覆刪除https://10917324.blogspot.com/2023/06/blog-post.html
回覆刪除https://shiunpei.blogspot.com/2023/06/blog-post.html
回覆刪除https://chenpeiyun910103.blogspot.com/2023/06/blog-post.html
回覆刪除https://hung927.blogspot.com/2023/06/blog-post.html
回覆刪除https://tonydongdo.blogspot.com/2023/06/blog-post.html
回覆刪除https://kenyeh123.blogspot.com/2023/06/blog-post.html
回覆刪除https://www.blogger.com/blog/post/edit/6353067039179351492/3848540807600666328
回覆刪除https://www.blogger.com/blog/post/edit/6353067039179351492/4052752428834577793
https://www.blogger.com/blog/post/edit/6353067039179351492/5545205678021515333
https://www.blogger.com/blog/post/edit/6353067039179351492/27218861247793833113
你要放查看 不是放你自己編輯的網頁
刪除作者已經移除這則留言。
刪除https://hsiehhuihsiang.blogspot.com/2023/06/0617.html
回覆刪除要在HTML模式下,貼上YT嵌入的程式碼,馬上去程式碼末端加上去。
刪除