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)

GOOGLE COLAB執行程式

上課影片

維基百科

留言

這個網誌中的熱門文章

許俊培Python與Javascript與EXCEL IRR函數比較

許俊培python自訂函數EXCEL PV和繪圖