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

原文地址:https://www.cnblogs.com/xzzheng/p/10316428.html