#劉任昌教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://xxddai.blogspot.com/2023/03/algorithmic-trading-multicharts-power.html
回覆刪除https://pengyanyuu.blogspot.com/2023/03/algorithmic-trading-multicharts-power.html
回覆刪除https://d10917225.blogspot.com/2023/03/d10917225-1120303.html
回覆刪除https://d10917206.blogspot.com/2023/03/d10917206-1120303.html
回覆刪除https://remonti0119.blogspot.com/2023/03/blog-post.html
回覆刪除https://kff0787.blogspot.com/2023/03/blog-post.html
回覆刪除作者已經移除這則留言。
回覆刪除https://lin60616.blogspot.com/2023/03/blog-post_2.html
回覆刪除https://d10917203.blogspot.com/2023/03/multicharts-power-language-apipython.html
回覆刪除https://fyrjeike.blogspot.com/2023/03/20230303.html
回覆刪除https://xiang4427.blogspot.com/
回覆刪除https://aik284267.blogspot.com/2023/03/blog-post.html
回覆刪除https://d10917250.blogspot.com/2023/03/blog-post.html
回覆刪除https://chenpeiyun910103.blogspot.com/2023/03/robinheed-gamestep-citadel-lnvestment.html
回覆刪除https://d10917350.blogspot.com/2023/03/blog-post.html
回覆刪除https://hung927.blogspot.com/2023/03/blog-post.html
回覆刪除https://chen1227.blogspot.com/2023/03/15059.html
回覆刪除https://d10950132.blogspot.com/2023/03/blog-post.html
回覆刪除https://tonydongdo.blogspot.com/2023/03/15059.html
回覆刪除作者已經移除這則留言。
回覆刪除https://yourmomdai.blogspot.com/2023/03/15059.html
回覆刪除https://dd10950104.blogspot.com/2023/03/33.html
回覆刪除https://www.blogger.com/blog/post/edit/8566905904040694772/3422564251583982207
回覆刪除https://www.blogger.com/blog/post/edit/6353067039179351492/4707586058142342454
回覆刪除