發表文章

方逵 資本市場線、證券市場線、SPY累積報酬

圖片
average 日平均 0.0456% 10.95% 年化*240 stdev 日標準差 1.1802% 18.2839% 開根號240

方逵 投資學CAPM證明

圖片
Your browser does not support the HTML canvas tag.

20240912投資學第一次上課

圖片
投資(investing)是一個重要議題,所以我們必須學習投資學(investment), 以懂得做投資(to invest)。華倫巴菲特(Warren Buffett)對年輕人忠告 \footnote{參考視頻(https://youtube.com/shorts/z3EqFAZ4Dxc),華倫巴菲特於 2022/4/30股東會作出類似表達,對要求推薦一股票的一位年輕學生如此說:最好的投資是發展自我(develop yourself)。參考 https://youtu.be/xSHPQk5SHzg?si=1Krq-U0c6X_fuqKl} :「你能選擇的最好投資是投資自己。」(The best investment you can make is in yourself.) 華倫巴菲特接續說:改善你的構通技巧(communication skills),包含書寫書寫表達與人際構通的技巧,好的溝通技巧可以提升你的價值50以上。 華倫巴菲特所謂「最好投資」指的是投資的過程與方法,也就是投資學(investment):年輕的時候要發展自己的專業知識,拓展自己更大的人生選擇機會與駕馭機會的高度。在這過程中會不斷累積資本(capital)與財富(wealth),如何將它們配置到金融資產(financial assets)或金融工具(financial instruments),即是投資學的議題。所以,華倫巴菲特說的投資是「廣義的」投資學,大學課程學習的投資學是「狹義的」投資學,也就是這門課的議題。 華倫巴菲建議的「投資自己」或「發展自我」意謂壓抑自己懶睡、玩樂、玩電動的行為, 而挑選「發展自我」的方向、領域、階段、時間配置等,得以提升自己的人生價值。 投資學課程的投資是犧牲現在的消費,形成儲蓄的資金,而將資金配置在各種投資工具, 配置的比率、配置的時點,都是投資學討論的議題。 英文投資(invest)與銀行(bank)的字源 投資(invest)英文字尾vest是衣服的「背心」,相關字有救生衣(safety vest)、防彈衣(bullet-proof vest)。 英文「invest」字源是拉丁文「investire」原意是穿上正式的聖袍(to clothe in the official robes of an office),直到1610年代,...

D11236117 方逵期末考

圖片
from tkinter import * def doSomething(event): #print("方逵按下: " + event.keysym) label.config(text=event.keysym) window = Tk() window.bind("<Key>",doSomething) window.title('方逵期末考') label = Label(window,font=("Helvetica",100),bg='blue') label.pack() window.mainloop()

方逵python類別class函數def

圖片
影片445 wikipedia智能合約 bro code snake game程式碼 from tkinter import * import random GAME_WIDTH,GAME_HEIGHT = 600 , 600 SPEED = 200     #時間單位千分之一 SPACE_SIZE, BODY_PARTS = 50 , 3 #左邊變數 assigning value一次改全部 ctrl shift L COLOR = [ "red" , "orange" , "yellow" , "green" , "blue" , "indigo" , "purple" , "pink" ] #0123456 FOOD_COLOR = "white" BACKGROUND_COLOR = "black" class Snake : #類別Snake     def __init__ ( self ):         self .body_size = BODY_PARTS         self .coordinates = []         self .squares = []         for i in range ( 0 , BODY_PARTS):             self .coordinates.append([ 0 , 0 ])         for x, y in self .coordinates:             i = random.randint( 0 , 6 ) #產生整數亂數0到6             square = canvas.create_rectangle(x, y, x + SPACE_SIZE, y + SPACE...

教育學習網python繪圖canvas

圖片
432 canvas帆布,畫布apple公司發展 import tkinter as tk root = tk.Tk() root.title('方逵教育學習網') root.geometry('300x300') canvas = tk.Canvas(root, width=300, height=300) canvas.create_oval(160, 120, 200, 160, width=8, fill='#f00', outline='#00f') canvas.create_rectangle(10, 10, 50, 100) canvas.create_rectangle(60, 10, 110, 100, width=8) canvas.create_rectangle(120, 10, 170, 100, width=8, fill='#f00') canvas.create_rectangle(180, 10, 230, 100, width=8, fill='#f00', outline='#00f') canvas.create_rectangle(240, 10, 290, 100, width=3, fill='#fff', outline='#0a0', dash=(5,5)) canvas.create_text(40, 110, text='方逵', anchor='nw', fill='#0a0', font=('Arial', 30, 'bold','italic','underline')) canvas.pack() root.mainloop()

python lambda函數,使用google合作實驗colab

圖片
w3schools與google colab執行python程式碼lambda函數 print('lambda是單行無名anonymous的函數') x = lambda a: a + 10 print(x(5)) y = lambda a: a + '超級大帥哥' print(y('方逵')) a = ['賴清德','蕭美琴','含串列','韓國瑜'] for i in a: print(y(i))