在Python中,您可以在一行中通过以下几种方法进行多个变量的赋值:
1. 使用逗号分隔的变量赋值:
```python
a, b = map(int, input().split())
2. 使用元组解包(tuple unpacking):
```python
a, b = 45, 54
```python
values = list(map(int, input().split()))
a, b = values, values
4. 使用`input`函数结合`str.split`方法:
```python
a, b = input().split(',')
请根据您的具体需求选择合适的方法。