输入的格式

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

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

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

猜你喜欢

转载自www.cnblogs.com/lzz807237221/p/10631323.html
今日推荐