李宣妮 python陣列array串列list字典dic集合set元祖tuple
利用w3schools
animal = ["豬", "牛", "羊", '貓',"蛇"]
#python語言的註解comments,以下命令出現
print(animal[3])
print(animal[0])
for i in range(5):
x = '我愛' + animal[i]
print(x) #使用index
print('上面使用index,下面沒用')
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
JUPYTER NOTEBOOK人工智慧平台
UL=UNDERER LIST, OL=ORDERED LIST, LI=LIST
大括號{}curly bracket,curly捲
中括號[]square bracket, square正方形
小括號()circle bracket, circle圓形
圓周circumference
直徑diameter
半徑radius
https://shanny11336108.blogspot.com/2025/03/pythonarraylistdicsettuple.html
回覆刪除226.宇宙第一女神的第一個作業。https://shanny11336108.blogspot.com/2025/02/0226chatgpt.html