郭伊庭{集合SET}[串列LIST](元組TUPLE){字典:DICT和集合一樣但key所以:冒號value值}

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])
this=["瘋狗昌","檢舉", "小括號","中"]
print(this)
for i in range(-1, 4):
   print(i, this[i])

留言

這個網誌中的熱門文章

郭伊庭繪製選擇權到期日損益圖