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

animal = ["豬", "牛", "羊", '貓'] #python語言的註解comments x = animal.copy() print(animal) x.reverse() #將x反轉reverse print(x) animal.append('狗') print(animal) y = animal.copy() y.reverse() #將x反轉reverse print(y)

留言

  1. https://sincewayne.blogspot.com/2025/03/202534python-array.html
    第一次上課225. https://sincewayne.blogspot.com/2025/02/chatgpt.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

塗偉誠Python與Javascript與EXCEL IRR函數比較