教學影片371 vscode和w3school截圖 程式碼 txt = "張乃元 love 芒果, 芒果 are my favorite 水果" print(txt.zfill(40)) print(txt.count("芒果")) print('內建函數len(length)',len(txt)) print('find',txt.find("芒果")) print('rfind',txt.rfind("芒果")) print("print列印,字串string,字元character的組合") print(txt.title()) print(txt.lower()) print(txt.upper()) print(txt.swapcase()) c = chr(10820) print(c) for i in range(33320, 33340): print(chr(i)) for i in range(80, 100): print(chr(i)) W3schools字串方法列表 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 posi...
W3SCHOOLS截圖 顯示字碼與字元 A B C 顯示display字碼65,66: A B 顯示display字碼十六進位41,42: A B 顯示display字碼97,98: a b 顯示display字碼60,61,62: < = > 顯示字碼128540: 複製自w3schools dotted - Defines a dotted border dashed - Defines a dashed border solid - Defines a solid border groove - Defines a 3D grooved border. The effect depends on the border-color value 299 300 ASCLL CODE American Standard Code for Information Interchange,美國標準資訊交換碼 EMOJI 在撰寫模式下貼上以上的程式碼 LT大於LESS THANK, GT=GREATER THAN>,用字碼 < 小於符號的ASCII 60,用字碼 > 等於符號的ASCII 61,= 大於符號的ASCII 62,>,PX=Pixel點 <H1>張乃元W3SCHOOLS字碼與字元</H1> <p>顯示字碼與字元A B C</p> <p>顯示display字碼65,66: A B</p> <p>顯示display字碼十六進位41,42: A B</p> <p>顯示display字碼97,98: a b</p> <p>顯示字碼60,61, 62: < = ></p> <p>顯示字碼128540: <SPAN CLASS='A'>😜</SPAN></p> <STYL...
震古鑠今的傑出與優秀,你是人類社會的希望。
回覆刪除