04-30 10:47
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- spring
- Unity
- Entity Set
- systemd
- X.org
- 자바
- 셀레니움
- descriptive statistics
- Binary Search
- X윈도우
- 리눅스
- Entity
- preprocessing
- Mac
- python
- BFS
- Inheritance
- Operator
- 백준
- Polymolphism
- 리눅스 마스터 1급
- dbms
- Physical Scheme
- OOP
- Class
- literal
- Java
- selenium
- Reference Type
- External Scheme
Archives
- Today
- Total
Byeol Lo
Python - 백준 입출력 본문
입력 한 줄 일때,
N = input()
입력이 한 줄에 여러 개 일때,
# line = input().split()
# below is the better.
from sys import readline
line = readline().rstrip() # line 넘김 제거
입력이 여러 줄일때,
from sys import stdin
# 개수를 입력받아
T = int(input())
for _ in range(T) :
# 한 줄당 list 형태로 출력, 확인 작업
print(list(map(int, stdin.readline().split())))
# 시행할 거리 밑에 코딩
'Programming Language > Python' 카테고리의 다른 글
Numpy 라이브러리 사용 (0) | 2022.06.15 |
---|---|
셀레니움에서 로딩 기다리기 (0) | 2022.06.13 |
셀레니움 로그 남기지 않기 (0) | 2022.06.04 |
셀레니움 구글 드라이버 간편 설치 및 실행 (0) | 2022.06.04 |
구글 코랩에서 셀레니움 이용하기 (4) | 2022.06.04 |
Comments