import fileinput
for line in fileinput.input(): #3,4,5
>>if line == "\n":
>>>>break
>>else:
>>>>a, b, c = map(int, line.split(","))
print(a, b, c) #3 4 5
More than 5 years have passed since last update.
fileinput — 標準入力でデータ件数が分からない複数データの入力
Last updated at Posted at 2017-08-11
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme