python input redirect
input file
python main.py < input.txt
output file
python main.py > output.txt
launch.json
Add configuration. 아래 코드를 추가한다.
"args" :
["<","input.txt", ">", "output.txt"]
이렇게 하면 input, output을 console 창이 아닌 파일로 관리할 수 있어서 편하다.
Subscribe to Mem Learning
Get the latest posts delivered right to your inbox