我正在制作一个四人连接游戏,其中棋盘大小可以由玩家决定,同时忽略数字之间的空格量。
inp = input("Please input the size of the board youd like with the number of rows before "
"the number of columns. If you would like to quit, please type quit").split()
while inp != "quit":
nRows, nCols = inp
这种方法以前对我有用,但它不断导致:
ValueError: not enough values to unpack