1.储存在变量中
# 输入格式:3 5
tabel, customer = map(int, input().split())
print("table:", tabel)
print("customer:", customer)
2.储存在列表中
#输入格式:2 4 2
tabel_number = [int(x) for x in input().split()]
print("tabel_number:", tabel_number)
3.储存在字典中
from collections import defaultdict
customers = defaultdict(list)
for i in range(customer):
num, spend = map(int, input().split())
customers[num].append(spend)
print("customers:", customers)