본문 바로가기
언어/Python

백준에서 input.txt로 알고리즘 문제 풀기

by 김어찐 2021. 8. 13.
728x90

이렇게 하면 input함수사용하면 파일 일어옴

import sys
sys.stdin=open("data.txt","r")
input=sys.stdin.readline
728x90