朱子辰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://tzuchenchu.blogspot.com/2025/03/pythonlistarraytuplesetdict.html
    這一題應該在HTML模式貼上。https://tzuchenchu.blogspot.com/2025/03/202534python-array.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

朱子辰Python與Javascript與EXCEL IRR函數比較

python自訂函數EXCEL PV和繪圖朱子辰

朱子辰物件導向設計OOP=Object-Oriented Programming