[python]特殊输入格式(输入中包含空格逗号等)

  • 特殊输入格式

    • 输入中包含空格

      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(','))

posted on 2019-01-24 19:36  小秦呀  阅读(3413)  评论(0编辑  收藏  举报

导航