我想知道是否可以在一行标准输入中输入两个或更多整数.在C/C++中很简单:

C :

#include 
int main() {
int a, b;
std::cin >> a >> b;
return 0;
}

C:

#include

void main() {
int a, b;
scanf("%d%d", &a, &b);
}
在Python中,它不起作用:
enedil@notebook:~$cat script.py
#!/usr/bin/python3
a = int(input())
b = int(input())
enedil@notebook:~$python3 script.py
3 5
Traceback (most recent call last):
File "script.py", line 2, in 
a = int(input())
ValueError: invalid literal for int() with base 10: '3 5'

那怎么办呢?