Home  >  Q&A  >  body text

Python novice is learning to read by himself and encounters something he doesn’t understand

As shown in the picture, I have been learning python by myself recently. When I read books, I often see this kind of --snip--
There is no explanation in the book, and I can't find anything particularly clear on Baidu. I don't know what this is. What
Generally speaking, if the code is not written yet, shouldn’t you write a pass?
Then what the hell is this snip?

typechotypecho2675 days ago933

reply all(3)I'll reply

  • 阿神

    阿神2017-06-22 11:54:38

    Omit the implementation part of the function body. I have seen this written in foreign books before, but I read the original English version and looked up the meaning of the word:

    1. To cut; to cut; to cut with...

      reply
      0
  • 天蓬老师

    天蓬老师2017-06-22 11:54:38

    The snip part should be omitted by the author and omit the space. This part of the code should be there above. Otherwise, if the author posted the code repeatedly, the book would probably not be that good

    reply
    0
  • PHP中文网

    PHP中文网2017-06-22 11:54:38

    Just understand it as...

    reply
    0
  • Cancelreply