2025年3月4日上課Python 陣列array串列的函數(方法)

animal = ["豬", "牛", "羊", '貓'] #python語言的註解comments x = animal.copy() print(animal) x.reverse() #將x反轉reverse print(x) animal.append('狗') print(animal) for x in animal: x = "我愛養" + x

留言

  1. 順便嵌入教學影片。https://christina-lqw.blogspot.com/2025/03/javascriptpython.html
    311執行按鈕.https://christina-lqw.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
    304.必須在HTML模式貼上才能執行.https://christina-lqw.blogspot.com/2025/03/animal-pythoncomments-x-animal.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

梁騏薇整合開發環境IDE的Jupyter編輯Python程式碼

梁騏薇HTML按鈕BUTTON事件ONCLICK

JAVASCRIPT建構網頁文件vs.PYTHON建構WORD文件