發表文章

鄒於萱EXCEL樞紐分析PivotTable交叉篩選Slicer 5

圖片
EXCEL另存範圍為html 鄒於萱上市公司簽證會計師CPA=Certified Public Account 計數 - 簡稱 勤業眾信聯合會計師事務所 339 資誠聯合會計師事務所 227 安侯建業聯合會計師事務所 219 安永聯合會計師事務所 106 國富浩華聯合會計師事務所 28 正風聯合會計師事務所 14 立本台灣聯合會計師事務所 12 信永中和聯合會計師事務所 6 大中國際聯合會計師事務所 5 德昌聯合會計師事務所 5 致遠聯合會計師事務所 4 惠眾聯合會計師事務所 3 群智聯合會計師事務所 3 建智聯合會計師事務所 3 霈昇聯合會計師事務所 2 南台聯合會計師事務所 2 馬施云大華聯合會計師事務所 2 基富聯合會計師事務所 1 誠正聯合會計師事務所 1 畢馬威香港會計師事務所 1 資信聯合會計師事務所 1 冠恒聯合會計師事務所 1 總計 985 樞紐分析圖橫條圖

鄒於萱類別class __init__(self, 其他參數)

圖片
class Person: #定義類別class稱為Person def __init__(self, name, age): #起始屬性函數一律稱__init__ self.name = name self.age = age def myfunc(self): print("嗐,我的\n名字是" + self.name) #字串中\n換列 print("嗐,我的") print("名字是" + self.name) p1 = Person("鄒於萱", 36) #利用類別建構物件(實例) p1.myfunc() from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 import math #從函式庫 math 輸入所有 * 方法 from time import * from random import * class Regular: def __init__(self, cx, cy, cr, s, t, c, w): #類別共同的設定必然 def __init__ initiate發起 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 * math.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*math.cos(i*self.u)) self.y.append(self.cy + self.cr*math.sin(i*sel...

鄒於萱python time.sleep()自建函數畫線段

圖片
from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 from math import * #從函式庫 math 輸入所有 * 方法 from time import * #劉任昌輸入time函數庫,取代import time class Regular: def __init__(self, cx, cy, cr, s, t, c, w): #類別共同的設定必然 def __init__ initiate發起 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) sleep(0.5) tk.update() def show(): #畫圖 define自訂函數...

鄒於萱微軟ACCESS查詢SQL語法ASC上升DESC下降

圖片
影片說明

鄒於萱python自訂函數built-in內建函數math程式庫

圖片
 #import math  #鄒於萱輸入math函式庫 from math import * #從數學函式庫math輸入所有函式 from tkinter import * #從tkinter視窗函式庫輸入所有函式 def f(r):   #定義函數def 函數名(參數):   print("圓周率"+str(pi))#字串 + str(數字)   print("圓面積  "+str(pi*r*r))   print("圓周長  "+str(pi*r*2))   print("球表面積"+str(pi*r*r*4))   print("球體積  "+str(pi*r*r*4/3)) def g(angle):   print("正弦sin "+str(sin(angle)))   print("餘弦cos "+str(cos(angle))) def h(x,y): #最常利用在模組化   f(x)      #呼叫計算面積與體積的函式   g(y)      #呼叫計算三角函數的函式 print("鄒於萱自訂h呼叫f,g呼叫內建函數") print("數學pi, sin, cos以下式主程式\n") h(1,pi/6) #30度=pi/6, 180度=pi window = Tk()  #建構視窗 window.title("鄒於萱建構tkinter套件視窗") can = Canvas(window,width=600,height=400).pack() lab1 = Label(window, text="輸入半徑",font=('標楷體',30)).pack(side=LEFT) window.mainloop() window.mainloop()

鄒於萱ACCESS建立資料庫關聯圖

圖片

鄒於萱Python類別class函數function

圖片
VS Code多邊形編輯 VS Code程式碼 from tkinter import * #從函式庫 tkinter 輸入所有 * 方法 from math import * #從函式庫 math 輸入所有 * 方法 class Regular: def __init__(self, cx, cy, cr, s, t, c, w): #類別共同的設定必然 def __init__ initiate發起 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(): #畫圖 define自訂函數 poly = Regular(cx.get(), cy.get(), cr.get(), s.get(), t.get(), c.g...