Python学习笔记(博主自用)

1.输入

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

 不断更新中...

猜你喜欢

转载自www.cnblogs.com/yeu4h3uh2/p/12728752.html