python怎麼一次輸入兩個數

Python中輸入多個數字: a, b, c = map(int, input().split()) 1、輸入一個數字直接 m = int(input()) 2、輸入兩個數字就是 m, n = map(int, input().split()) 3、三個及三個以上就和兩個的類似: a, b, c = map(int, input().split()) a, b, c, d = map(int, i
相關文章
相關標籤/搜索