Python 3.5.1 - read multiple inputs into an array
问题 I'm using python 3.5.1 and running my file through command prompt on windows. The arguments are being passed after the program is run; ie the program prompts for input based on a previously generated list. I'm looking to read in multiple numbers on the same line separated by spaces. Python 2.X it wouldn't have been an issue with raw_input but this is proving to be a challenge. selection = list(map(int,input("Enter items to archive (1 2 etc):").split(","))) If I enter two different numbers on