多個 問題需要在單行上輸入多個整數。最好的方法是一行輸入整個數字字符串,然後將它們拆分為整數。這是Python 3版本: a = [] p = input() p = p.split() for i in p: ...
確定! 回上一頁