3/4

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://jiachiangkuo.blogspot.com/2025/03/41.html
    https://jiachiangkuo.blogspot.com/2025/03/311.html
    https://jiachiangkuo.blogspot.com/2025/03/34.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

D113501054 郭鎵強