2019年5月20日 星期一

取 list 任一項目




=====python ======
index01=int(input("請輸入0至5任一數字"))
scorelist=[10,20,30,40,50,60]
print(scorelist[index01])

沒有留言:

張貼留言