-1
試圖從數組中選擇分配vdiv和hdiv?使用輸入從數組中分配2個變量?
divOptions = [['|', '-'], ['4', '2'], ['v', 'h']]
divChoice = input('1 = |, - \n2 = 4, 2 \n3 = v, h \nPlease choose a number: ')
divInt = divOptions[divChoice - 1]
vdiv, hdiv = divInt
你需要divChoice''轉換爲整數。 – zondo