How to exit when viewing python help like help(os.listdir)

前端 未结 2 739
别跟我提以往
别跟我提以往 2020-12-25 11:23

when the help window pops up, what are the basic commands (mac os) to page up/down, end of document and exiting the help screen?

I just had to close

相关标签:
2条回答
  • 2020-12-25 11:57

    You are probably in less (this is configurable through the PAGER environment variable, but you probably haven't changed that). Press h for help and q to quit.

    0 讨论(0)
  • 2020-12-25 11:59

    Other options to exit the help screen would be to type any one of the following(as described in the help section) q,:q,Q,:Q and ZZ .These can be seen when you press 'h' once you are on the help screen

    0 讨论(0)
提交回复
热议问题