getMin, getMax = int(input("Enter a range (min,max): "));
以上就是我想实现的代码,但它给了我一个错误说...Python 2.7版以来自用户的输入为两个独立的变量
int() argument must be a string or a number, not 'tuple'
基本上,我试图进入.split(,)
后输入语句,但我得到相同的错误。当用户输入1,10作为输入时,我想getMin = 1
和getMax = 10
的可能的复制[如何从用户输入一个整数元组?](https://stackoverflow.com/questions/2233917/how-to-input-an-integer-tuple-from-user) –