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. 429.https://mumeng-ru.blogspot.com/2025/04/worddocument.html
    422.https://mumeng-ru.blogspot.com/2025/04/html.html
    415應付了事https://mumeng-ru.blogspot.com/2025/04/blog-post.html
    325spyder.https://mumeng-ru.blogspot.com/2025/03/325.html
    318.https://mumeng-ru.blogspot.com/2025/03/javasciptpython.html
    311.https://mumeng-ru.blogspot.com/2025/03/blog-post.html
    304.https://mumeng-ru.blogspot.com/2025/03/animal-pythoncomments-x-animal.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

乙班吳孟儒金融常識

吳孟儒