r = randint(1,len(list1))-1 #因為串列第1筆資料的索引值是0,所以要減1。 print("抽到索引值" + str(r)) #str()把數字轉文字 t = "座號" + str(list1[r]) + "號" + ...
確定! 回上一頁