What do the three arrow (“>>>”) signs mean?

前端 未结 4 1786
小蘑菇
小蘑菇 2020-12-05 17:06

So this is probably a dumb question, but I have now been searching for quite some time, and I haven\'t been able to figure out what they do even though I see them often in s

4条回答
  •  無奈伤痛
    2020-12-05 17:42

    You won't see it in source code, it's probably documentation. It indicates an interactive session, and things typed into the 'interpreter' are marked with this. Output is shown without the arrows.

    In fact, the python documentation often has a button >>>at the top right of example code to be able to hide the arrows (and output) so that you can copy and paste the code.

    Shown:
    shown
    Hidden:
    hidden

提交回复
热议问题