0%
简介
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| import sys word = sys.stdin.read() print(word ,'is word ')
print(111111)
con = sys.stdout
f = open('outfile.log','a+') sys.stdout = f print('in outfile') print('重定向')
sys.stdout = con
print('222222')
|