You may need to strengthen to the input () and int () method, the input all your input into a string, you enter into 23 45 "12" Then you use int, "23 45 12" this string is cannot become a integer, According to your code, you want to enter an integer array, you can use the following methods:
inputArr=input (" ") Result=[int (n) for n in inputArr. The split ()]