黃珍甄{集合SET}[串列LIST](元組TUPLE){字典:DICT和集合一樣但key所以:冒號value值}
程式碼
this=["黃珍甄","🌸", "小括號","中"] print(this) for i in range(-1, 4): print(i, this[i])
圖片
程式碼
this=["黃珍甄","🌸", "小","中"]
that=("元組","tuple","貓","狐狸","狗")
print(this)
for i in range(-4, 4):
print(i, this[i])
for i in range(-5, 5):
print(i, that[i])
留言
張貼留言