📅  最后修改于: 2022-03-11 14:45:52.805000             🧑  作者: Mango
fptr = sys.stdout # stdout is already an open stream
#or
os.environ['OUTPUT_PATH'] = 'junk.txt' # before you open the fptr!