What if there is too much content to see the first half of the python after running it?

I deal with a lot of data. After one processing, the console can only see the second half of the data. As shown in figure
clipboard.png
is there any way to see the front?

Jul.04,2022

content is output to a file, python a.py > a.log


write a log output.


save the output to a file and read the file alone.


you should put the output in a file.

  • use output redirection > , as @ rife said
  • use Python's file IO to output the content to a file python/python-files-io.html" rel=" nofollow noreferrer "> Python file IO
Menu