發表文章

目前顯示的是 2月, 2024的文章

尤婕羽電腦科技發展歷史:軟體VS硬體

圖片
黃仁勳維基百科 https://zh.wikipedia.org/zh-tw/%E9%BB%83%E4%BB%81%E5%8B%B3 黃仁勳維基百科崁入以上網頁指令 蘇姿丰Lisa Su維基百科 在紐約證券交易所交易的TSM是台積電在美國上市的ADR美國存託憑證,一股ADR是五股台灣股票。

尤婕羽Python字串string方法methods

圖片
VS Code與3schools截圖 程式碼 a = "Ha,尤婕羽,我使用w3schools學習,也會使用vsCode開發環境" b = a.replace('','') print (a) print (b) print ('幾個很?', a.count('很')) print ('很在0,1..位置', a.find('很')) print ('很在0,1..位置', a.rfind('很')) print ('a的長度',len(a)) print('英文大寫',a.upper()) print('英文小寫',a.lower()) txt = "HELLO,將第一個字母轉成大寫。" x = txt.capitalize() print (x) print (txt.casefold()) y = txt.center(30) print(txt.center(30)) print(y) print(len(y)) w3schools字串方式列表 https://www.w3schools.com/python/default.asp 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 ...