劉任昌程式交易Markowitz 1952投資效率前緣
STYLE樣式BORDER邊界SOLID實心DASHED虛線DOTTED點線 import csv #輸入import輸出export,輸入csv套件 import math #輸入math套件 from tkinter import * #或者import tkinter as tk Dim = 10 def draw_circle(x, y, label): canvas.create_oval(100+x-5, 700-y-5, 100+x+5, 700-y+5, fill="black") canvas.create_text(100+x+20, 700-y, text = label, anchor='w', font=('微軟正黑體',20)) file = open('台灣.csv','r',encoding='utf-8') read = csv.reader(file) header, rows = [], [] header = next(read) for item in read: rows.append(item) file.close() num = len(rows) #資料表長度 #print(header) mean = [0 for i in range(Dim)]; mean50 = 0; vari50=0 meanTemp = [0 for i in range(Dim)] vari = [[0 for i in range(Dim)] for j in range(Dim)] for k in range(num): for i in range(Dim): meanTemp[i]=float(rows[k][i+1])/100 #轉換為小數 mean[i] += meanTemp[i] for j in range(i+1): vari[i][j] += meanTemp[i]*meanTemp[j] mean...

https://www.blogger.com/blog/post/edit/8824816333106405608/6452131157197735670
回覆刪除https://11217133d.blogspot.com/2026/03/excelpythoncsvmatplotlib-3-12-2026.html
回覆刪除https://fanyahui.blogspot.com/2026/03/blog-post.html
回覆刪除https://hsiao-yu0711.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://ehiwkewh.blogspot.com/2026/03/excelpythoncsymatplotlib.html
回覆刪除https://www.blogger.com/blog/post/edit/preview/1173902976928833486/7847911683390117878
回覆刪除https://willy2005940612.blogspot.com/2026/03/excelpythoncsvmatplotlib-3-12-2026.html
回覆刪除https://stanley-ouo.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://s10655075.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://honghikun.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://56788888.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://the-most-great.blogspot.com/2026/03/excelpythoncsvmatplotib.html
回覆刪除https://laiweikaiaaa.blogspot.com/2026/03/html-css-javascript-javapythonl.html
回覆刪除https://the-most-great-tony11.blogspot.com/2026/03/excelpythoncsvmatplotib.html
回覆刪除https://chenyoukai.blogspot.com/2026/03/blog-post.html
回覆刪除https://linxinzhuo.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://d11217256.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://oscarliu1688.blogspot.com/2026/03/excelpythoncsvmatplotlib.html
回覆刪除https://dgdhgfhgfjh.blogspot.com/2026/03/blog-post.html
回覆刪除