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)

GOOGLE COLAB執行程式

嵌入EMBED影片與網頁

留言

  1. sin cos. https://chan0528.blogspot.com/2025/05/javascriptfontfillstylefilltext.html
    都會確實補做。https://chan0528.blogspot.com/2025/04/htmlbuttononclick.html
    https://chan0528.blogspot.com/2025/04/javascriptpython_14.html
    https://chan0528.blogspot.com/2025/03/animal-pythoncomments-x-animal.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

張依安Python執行IRR