2017-01-18 2 views

답변

2

임시 변수를 사용하여 파일로 출력을 보내기

파일 :

sys.stdout = open(filename, 'w') 
print "stuff" 

출력 셀로 출력 다시 보내기 :

sys.stdout = stdout_backup 
print "this is in an output cell now" 
관련 문제