[python]特殊输入格式(输入中包含空格逗号等)
时间:2019-01-24 19:57:04
收藏:0
阅读:579
-
特殊输入格式
- 输入中包含空格
a,b=map(int,input().split())
a,b,c=map(int,input().split())
-
- 输入中包含 ‘/‘
a,b=map(int,input().split(‘/‘))
-
- 输入中包含‘,‘
a,b=map(int,input().split(‘,‘))
原文:https://www.cnblogs.com/xzzheng/p/10316428.html
评论(0)