Python — How do you view output that doesn't fit the screen?

前端 未结 9 1724
挽巷
挽巷 2021-02-05 10:27

I should say I\'m looking for a solution to the problem of viewing output that does not fit on your screen. For example, range(100) will show the last 30ish lin

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 10:49

    What have you done when you run into a situation where you wish you could conveniently > scroll through some large output?

    1. Don't create large output. Use functions to summarize or show selected details.

    2. Simplify the application to avoid creating large output in the first place.

    3. Focus what I'm looking at to avoid large output.

    4. Generally avoid large output.

    It seems simpler to avoid large output than to fuss around trying to display something I never cared about in the first place.

提交回复
热议问题