發表文章

目前顯示的是 3月, 2023的文章

葉宸瑋python集合set元組tuple清單或串列list迴圈輸出str,int

圖片
w3schools截圖 w3schools程式碼 #葉宸瑋 集合{},清單[],元組(),字典{key:value} s = {"台積電", "鴻海", "聯發科", "中華電", "台塑化"} t = ("台積電", "鴻海", "聯發科", "中華電", "台塑化") list = ["台積電", "鴻海", "聯發科"] d = {2330:"台積電", 2317:"鴻海", 2454:"聯發科"} print("s型態" + str(type(s))) print("t型態" + str(type(t))) print("d型態" + str(type(d))) print("t型態" + str(type(list))) #字串與字串+ i = 0 for a in t: i = i + 1 print("台灣市場價格第" + str(i) + "大公司是") print(" " + a) print("聯發科的位置" + str(t.index("聯發科"))) '''python大區塊的註解,前後用三個引號 str 轉成字串 int 轉成數字 ''' w3schools元組tuples的方法 Python has two built-in methods that you can use on tuples. Method Description count() Returns the number of times a specified value occurs in a tuple index() Searches the tuple for a ...

葉宸瑋Word合併列印

圖片
合併列印收件者清單截圖 推薦信 寄件人:葉宸瑋 地址:宜蘭縣羅東鎮復興路三段316巷80號 電話:0905132497 電子郵件 cye97350@gmail.com 收件人:姓名 職稱 公司名稱 地址 收件者姓名,您好: 董事長向來是我崇敬的企業家,我一直期待能為您公司效力。 我畢業自德明財經科技大學,學習過HTML、CSS、JavaScript、Java、Python與微軟Office軟體,和一般大學畢業生相較,我相當熟悉於資訊科技在財務金融的應用,請參考我公然發布於Google部落格的學習成果: Java程式設計: Python程式設計: 商業套裝軟體: 每一個作品都有任課老師的評語,任課老師劉任昌是台灣知名的學術倫理評論家,以對學術論文著作挑剔、嚴苛著稱,在教學上則是積極與啟發學生的潛能。 我的個性積極進取,具備諸多證照,我相信協助朋友、同事與公司成長,就是實踐人生價值。感謝您撥冗閱讀,希望有機會加入貴公司效力。 OOO 敬上 敬祝商祺, 您的姓名 推薦信影片

葉宸瑋python字典dictionaries

圖片
w3schools字典方法列表 Python has a set of built-in methods that you can use on dictionaries. Method Description clear() 移除字典內容Removes all the elements from the dictionary copy() 拷貝Returns a copy of the dictionary fromkeys() Returns a dictionary with the specified keys and value get() 取得鍵Returns the value of the specified key items() Returns a list containing a tuple for each key value pair keys() Returns a list containing the dictionary's keys pop() 移除Removes the element with the specified key popitem() Removes the last inserted key-value pair setdefault() Returns the value of the specified key. If the key does not exist: insert the key, with the specified value update() Updates the dictionary with the specified key-value pairs values() Returns a list of all the values in the dictionary a = { #台灣股票市場價值最大,葉宸瑋python 2330: "台積電", 2317: "鴻海", 2454: "聯發科", 2412: '中華電'} print(a) print("用迴圈印出所有值") for t in a: ...

葉宸瑋w3schools字串slicing[::],str,len

圖片
#葉宸瑋strings可以用單引雙引只要對稱 b = '狗吃屎,兔吃菜,貓抓鼠' # 0 1 23 4 5 678 9 10,11,12, print('字串長度' + str(len(b))) #len函數 字串長度 輸出 整數 #str函數 轉成字串 這樣才能串接 print(b[-5:-2]) #練習字串格式format quantity = "滿漢大餐" itemno = 5 price = "葉宸瑋" myorder = "我要吃 {} 吃幾個 {},和 {} 誰一起吃" print(myorder.format(quantity, itemno, price))

葉宸瑋PowerPoint動畫Animation格式Formal

圖片