从控制台输入初始化几个变量

Initialize several variable from console input

正如标题所说,我需要从一个控制台输入影响多个变量的值。
我想从一个输入行一次存储 3 个数字,如下所示:
-number1-space-number2-space-number3-
现在我是这样做的:

numbers = input("Enter three numbers separated by spaces: ")
nb1 = int(numbers.split()[0])
nb2 = int(numbers.split()[1])
nb3 = int(numbers.split()[2])

但是如果你能做这样的事情我不会感到惊讶:

nb1, nb2, nb3 = input("Enter three numbers separeted by spaces: ",? ,?)

用实际有效的代码替换问号。
因此,如果您知道更好的方法,我将不胜感激。

msg = "Enter three numbers separated by spaces: "
n1, n2, n3 = (int(n) for n in input(msg).split())