程式語言編寫,需要編譯器compiler或直譯器interpreter執行。
瀏覽器Chrome或Edge是HTML, CSS, JavaScript的直譯器。
JAVA語言的編譯器是JDK, Java Development Kit爪哇開發工具。
VS Code是撰寫程式的整合開發環境IDE, Integrated Development Environment,可以編寫程式碼,也可以編譯程式,但需要裝Java延伸套件Extension Pack for Java
單元371影片 vs code與w3schools截圖 程式碼 txt = "賴威愷 love 蘋果, 蘋果是我 are my favorite 水果蘋果" print(txt.count("蘋果")) print('先練習內建函數len',len(txt)) print('find',txt.find("蘋果")) print(''rfind',txt.rfind("蘋果")) 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 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 i...
1225SVG,繼續學,你是台灣的堅強堡壘!全天下妹仔都會愛上你!
回覆刪除