發表文章

周冠穎期中考python讀取csv檔案

圖片
import csv#周冠穎python #輸入csv套件comma separated value file = open('SPY.CSV','r') #打開下載的檔案SPY.CSV,模式是r讀取, csvreader = csv.reader(file) #將檔案讀入變數csvreader header, rows = [], [] #宣告空白串列(陣列,清單) header = next(csvreader) #串列header儲存檔案第一列 for row in csvreader: #檔案接續逐列附加append於rows串列 rows.append(row) file.close() #關閉檔案 print(header) print('周冠穎\ 分析資料數目'+str(len(rows)))

周冠穎Entry輸入文字變數textvariable字型font

圖片
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*self.u)) def drawLine(self, x0, y0, x1, y1): canvas.create_line(x0, y0, x1, y1, width = self.w, fill=self.c) def draw(self): #類別的方法 secondTime = second.get() #取得輸入的second變數,當作區域變數secondTime for i in range( int(self.s * 1.5) - self.t): self.drawLine(self.x[i], ...
圖片
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...

2/20

圖片
#註解:周冠穎2023/2/20 w3school.com print("在Dcard出征留任昌") a="聽說他給女生的分數較高" print(a) b=a[2:9:]#方法取自串a第3到第8字元 print(b) C=a[2:9:2] print(c) d=a[9:2:-1] print(d)

D11117136周冠穎JavaScript執行輸入字串在反向輸出

lt=less than; gt=greater than; 周冠穎輸入字串:

周冠穎11/21金融題庫

圖片
答 1 2 3 4 下列何者不是 金融市場 的主要功能? 提供金融工具交易的場所 擔任資金需求者與供給者的橋樑 促進投資活動的效率,提升經濟發展 提供交易者投機的場所 答 1 2 3 4 下列何者不是 金融市場 交易的工具? 商業本票 銀行存款 股票 房地產 答 1 2 3 4 當 金融市場 管理的品質較佳時,企業發行的成本會______,金融工具的流動性會______。 較低,較低 較高,較低 較低,較高 較高,較高 答 1 2 3 4 當企業需要資金來進行投資,最好不要用下列何種方式尋求融通? 向銀行借錢 發行股票 發行債券 向地下錢莊借錢 答 1 2 3 4 下列何者不是近年來國內主管機關管理金融市場的發展方向? 減少法規的限制 鼓勵金融創新 對國外資金進行更嚴格的限制與管理 加強國際金融的流通 答 1 2 3 4 在金融市場中主管機關訂定法律規範的目的在於: 增加政府的收入 促進金融市場健全發展與有效經營 增加金融機構的進入障礙 提高金融機構的經營成本 答 1 2 3 4 目前國內監理銀行、票券、證券及保險等金融機構的主管機關為: 財政部 內政部 金融監督管理委員會 經濟部 答 1 2 3 4 依照國內金融監督管理制度的架構,主管證券相關事業的監理單位為: 銀行局 保險局 證券期貨局 檢查局 答 1 2 3 4 依照國內金融監理制度的架構,主掌金融業檢查業務的單位為: 銀行局 中央銀行 中央存款保險公司 檢查局 答 1 2 3 4 下列何者非隸屬「金融監督管理委員會」? 銀行局 公務人員退休撫卹基金管理委員會 證券期貨局 檢查局 答 1 2 3 4 下列何者不屬證券期貨局監理的機構? 投信公司 期貨公司 證券商 保險公司 答 1 2 3 4 下列何者不是檢查局業務檢查的機構? 保險公司 銀行 證券公司 金融資訊服務公司 答 1 2 3 4 下列何者非...