输入的格式

a,b = input().split() #读入两个数到a b中

a,b = map(int,input().split(',')) #读入两个整数到a,b中,输入的数用逗号分隔

a,b = map(int,input().split(' ')) #读入两个整数到a,b中,输入的数用空格分隔

原文地址:https://www.cnblogs.com/lzz807237221/p/10631323.html