劉任昌PYTHON陣列ARRAY串列LIST字典DIC集合SET元組TUPLE

利用W3SCHOOLS

animal = ["豬", "牛", "羊", '貓', "蛇"]
#python語言的註解comments,以下命令出現
print(animal[2])
print(animal[-5])
for i in range(5):#其他語言{}代表一個區
  x = '我愛' + animal[i]
  print(x) #使用index
print('上面使用index, 下面沒用')
for i in animal:
  print(i)
x = animal.copy()
print(animal)
x.reverse() #將x反轉reverse
print(x)
animal.append('狗')
print(animal)
y = animal.copy()
y.reverse() #將x反轉reverse
print(y) 
https://steam.oxxostudio.tw/category/python/info/online-editor.html

Google Colab ( Colaboratory ) 是一個在雲端運行的編輯環境,由 Google 提供一個雲端虛擬主機,支援 Python 程式及機器學習 TensorFlow 演算法,Colab 目的在提供教育訓練以及教學研究,不用下載或安裝,就可直接編輯 Python,並使用 Python 的資源庫,大幅降低初學者的入門門檻,不用耗費太多時間在環境的安裝與設定。

在 Colab 裡編輯的程式碼,預設直接儲存在開發者的 Google Drive 雲端硬碟中,執行時由虛擬主機提供強大的運算能力,並不會用到本機的資源。但要如果程式閒置一段時間,會被停止並回收運算資源。

520影片參考519

JUPYTER NOTEBOOK人工智慧平台

    心得

  • UL=UNDERER LIST, OL=ORDERED LIST, LI=LIST
  • 大括號{ }CURLY BRACKET, CURLY捲
  • 中括號[ ]SQUARE BRACKET, SQUARE方形
  • 小括號( )CIRCLE BRACKER, CIRCLE圓
  • 圓周CIRCUMFERENCE
  • 直徑DIAMETER
  • 半徑RADIUS
  • BORDER邊界, SOLID實心, PX=PIXEL點,

留言

  1. https://guovupvmp.blogspot.com/2025/03/animal-pythoncomments-x-animal.html

    回覆刪除
  2. https://xin00.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  3. https://ericfggf554466.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  4. https://shanny11336108.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  5. https://wihfaw.blogspot.com/2025/03/animal-pythoncomments-printanimal2.html

    回覆刪除
  6. https://jiang233.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  7. https://jiang-jia-ehen.blogspot.com/2025/03/animal-pythoncomments-x-animal.html

    回覆刪除
  8. https://lu-chieh-chi.blogspot.com/2025/03/python.html

    回覆刪除
  9. https://leelittle25147.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  10. https://yangsinmei.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  11. https://djhdvdhd.blogspot.com/2025/03/blog-post.html

    回覆刪除
  12. https://hsulining9999.blogspot.com/2025/03/python-array.html

    回覆刪除
  13. https://anson0501.blogspot.com/2025/03/202535python-array.html

    回覆刪除
  14. https://yehjungwen.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  15. https://www.blogger.com/blog/post/edit/preview/298840322514420979/2275839834876749726

    回覆刪除
  16. https://chang-yam-ci.blogspot.com/2025/03/w3schoolspython.html

    回覆刪除
  17. https://wwersseraaer.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  18. https://allyking097.blogspot.com/2025/03/202535python-array.html

    回覆刪除
  19. https://lintingyang11317134.blogspot.com/2025/03/animal-pythoncomments-printanimal2.html

    回覆刪除
  20. https://yezonghan.blogspot.com/2025/03/h1background-colorpurplepreborder-3px.html

    回覆刪除
  21. https://yuxi1202.blogspot.com/2025/03/35.html

    回覆刪除
  22. https://laichia-jung.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  23. https://egdvcn-gh.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  24. https://lupeiying.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  25. https://yangbokai.blogspot.com/2025/03/htmlcssjavascriptjavapython.html

    回覆刪除
  26. https://chenwewen.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  27. https://htmlsyuan.blogspot.com/2025/03/h1background-colorpurplepre-border-3px.html

    回覆刪除
  28. https://xie-ni.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除
  29. https://lu-cheng-yin-2024.blogspot.com/2025/03/311.html

    回覆刪除
  30. https://wei1029.blogspot.com/2025/03/h1background-colorpurplecolorwhite.html

    回覆刪除
  31. https://yichen0617.blogspot.com/2025/03/pythonarraylistdicsettuple.html

    回覆刪除

張貼留言

這個網誌中的熱門文章

甲劉任昌python串列List(陣列Array),元組Tuple,集合Set,字典Dict

劉任昌Javascript與Python比較