發表文章

陳暐丞python寫入write迴圈範圍range

圖片
space, slash, backslash, cr = ' ', '/', '\\', '\n' k = input('邊長: ') #輸入字串 m = input('橫向: ') k, m = int(k), int(m) f = open("難嗎.txt",'w',encoding='utf8') f.write('劉任昌讀取檔案' + cr)#註解\n換列 for i in range(9): f.write(str(i)) f.write(cr) for i in range(1, k+1): #迴圈1到k for ii in range(m): for j in range(k-i): f.write(space) f.write(slash) for j in range(2*i-2): f.write(space) f.write(backslash) for j in range(k-i): f.write(space) f.write(cr) for i in range(1, k+1): for ii in range(m): for j in range(i-1): f.write(space) f.write(backslash) for j in range(2*k-2*i): f.write(space) f.write(slash) for j in range(i-1): f.write(space) f.write(cr) f.close()

陳暐丞python字串string方法methods

圖片
單元371影片 程式碼 txt = "陳暐丞 love 蘋果, 蘋果是我 are my favorite 水果蘋果" print(txt.count("蘋果")) print('先練習內建函數len',len(txt)) print('find',txt.find("蘋果")) print(''rfind',txt.rfind("蘋果")) Method Description capitalize() Converts the first character to upper case casefold() Converts string into lower case center() Returns a centered string count() Returns the number of times a specified value occurs in a string encode() Returns an encoded version of the string endswith() Returns true if the string ends with the specified value expandtabs() Sets the tab size of the string find() Searches the string for a specified value and returns the position of where it was found format() Formats specified values in a string format_map() Formats specified values in a string index() Searches the string for a specified value and returns the position of where it was found isalnum() Returns True if all characters in the string are alphanumeric isalph...

陳暐丞CANVAS繪圖套件繪製選擇權到期日損益圖

陳暐丞canvas繪圖套件繪製選擇權到期日損益圖 買入選擇權到期日損益 賣出選擇權到期日損益

陳暐丞2024年一月三日java

圖片
import java.awt.*; import java.awt.geom.Line2D; import javax.swing.*; public class Options { public static void main(String[] args) { JFrame frame = new JFrame("陳暐丞Java繪製選擇權到期日損益"); Container cp = frame.getContentPane(); cp.add(new JComponent() { public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setStroke(new BasicStroke(2));//stroke中風,筆觸 g2.setFont(new Font("monospaced", Font.BOLD|Font.ITALIC , 16)); g2.drawString("買入賣權到期日損益",0,120); g2.draw(new Line2D.Float(0, 0, 100, 100)); g2.draw(new Line2D.Float(100, 100, 200, 100)); g2.drawString("買入買權到期日損益",300,120); g2.draw(new Line2D.Float(300, 100, 400, 100)); g2.draw(new Line2D.Float(400, 100, 500, 0)); g2.drawString("賣出賣權到期日損益",0,180); g2.draw(new Lin...

陳暐丞期中考金融科技297-306

圖片
金融常識考試297到306金融科技 答 1 2 3 4 下列何者非屬資訊安全的基本三要素? 一致性(Consistence) 完整性(Integrity) 可用性(Availability) 機密性(Confidentiality) 答 1 2 3 4 下列何者非屬組織採用雲端運算服務的常見考量原因? 商譽 成本 速度 效能 答 1 2 3 4 下列何種數據資料單位代表1024GB? 1ZB 1EB 1PB 1TB 答 1 2 3 4 下列哪一個名詞和其他三個名詞不同義? 數據資料 大數據 巨量資料 海量資料 答 1 2 3 4 下列何者非屬網際網路興起後的數位商品或服務模式? 純網路銀行 電子資金轉帳 電子商務支付系統 加密貨幣 答 1 2 3 4 機器人是人工智慧的容器,機器人是身體,而人工智慧可以比喻成機器人的哪一部分? 心臟 腳 手 大腦 答 1 2 3 4 當保險業欲透過網路與電話語音等通路提供服務時,可運用何項技術驗證身分? 生物辨識 通訊技術 物聯網技術 網路技術 答 1 2 3 4 下列何項敘述非屬純網路銀行的明顯獨特特色? 沒有實體分行 沒有實體ATM機器 營業時間無限制全年無休 透過APP 提供金融服務 答 1 2 3 4 下列何者非屬我國核准設立之純網路銀行? 連線銀行 將來銀行 新網銀行 樂天銀行 答 1 2 3 4 目前各國金融監理機關對比特幣抱持戒慎恐懼的態度,考量的原因包含下列哪幾項? A.洗錢 B.資恐 C.逃稅 D.詐騙 僅 A 僅 A、B 僅 A、B、C A、B、C、D 送出297至306答案 顯示答案 講解297至306 學習心得 OL預設從1開始START=起始 324影片 325影片

陳暐丞VS code編輯網頁程式html,css,javascript

圖片
維基百科VS CORD Visual Studio Code(簡稱 VS Code)是一款由微軟開發且跨平台的免費原始碼編輯器[7]。該軟體以擴充元件的方式支援語法突顯、程式碼自動補全(又稱 IntelliSense)、程式碼重構功能,並且內建了命令列工具和 Git 版本控制系統[8]。使用者可以更改佈景主題和鍵盤捷徑實現個人化設定,也可以透過內建的擴充元件程式商店安裝其他擴充元件以加強軟體功能。 VS Code 使用 Monaco Editor 作為其底層的程式碼編輯器。[9] Visual Studio Code 的原始碼以 MIT授權條款在 GitHub 上釋出[5],而可執行檔使用了專門的授權條款[6]。 微軟在2015年4月29日舉辦的 Build 2015大會上公布了 Visual Studio Code 的開發計劃;同日,其預覽版本釋出[10]。2015年11月18日,Visual Studio Code 在 GitHub 上開源,同時宣佈將支援擴展功能[11]。2016年4月14日,Visual Studio Code 正式版發佈[12]。 在2019年的 Stack Overflow 組織的開發者調查中,Visual Studio Code 被認為是最受開發者歡迎的開發環境。據調查,87317名受訪者中有50.7%的受訪者聲稱正在使用 Visual Studio Code[13]。