Difficult-Rocket/try/others/sysstd.py

22 lines
388 B
Python
Raw Normal View History

2021-12-26 23:06:03 +08:00
# -------------------------------
# Difficult Rocket
# Copyright © 2021 by shenjackyuanjie
# All rights reserved
# -------------------------------
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
github: @shenjackyuanjie
gitee: @shenjackyuanjie
"""
import sys
with sys.stdout as f:
print('aaaaa', file=f, flush=True)
with sys.__stdout__ as f:
print(f.readlines())