linux印刷ログ


>>in
>script -f output.txt

>>out
>     ,    output.txt
>>test
>python
>print("hello!")
>>look the output.txt
      2019 05 29      12 29 48 
]0;jushi@zhoupeng: ~[01;32mjushi@zhoupeng[00m:[01;34m~[00m$ ifconfg[Kig>ifconfig.txt[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[Kpython
Python 3.7.3 (default, Mar 27 2019, 22:11:17) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print)[K(""De[K[K[Khello")
  File "", line 1
    print("hello")
         ^
SyntaxError: invalid character in identifier
>>> print("hello")[2P"hello")("hello")
hello
>>> 
>> that's over