๋ฐ์ํ
๐ ํ์ผ์ ์ฝ์ด์ input ๊ฐ์ ๋ฐ์๋ณด์
ctrl+c, ctrl+v ๋ ์ด์ ๊ทธ๋ง
๐ต์ฌ์ฉ๋ฒ
import sys
sys.stdin = open('input.txt')
for i in range(5):
print(sys.stdin.readline())
input.txt:
2
4
40 30 30 50
15
1 21 3 4 5 35 5 4 3 5 98 21 14 17 32
๐ต๊ฒฐ๊ณผ
2
4
40 30 30 50
15
1 21 3 4 5 35 5 4 3 5 98 21 14 17 32
๋ฐ์ํ
'Programming language > Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[python] ์งํฉ ์๋ฃํ set() (0) | 2020.09.08 |
---|---|
[python] F-String (0) | 2020.09.06 |
[python] filter (2) | 2020.08.31 |
[python] accumulate(itertools), ๋์ ํฉ (0) | 2020.08.30 |
[python] defaultdict (0) | 2020.08.29 |