python文档中很费解的代码(或是伪代码),请帮我解答一下。
迷茫
迷茫 2017-04-17 16:47:17
0
3
445

https://docs.python.org/2/reference/compound_stmts.html#def

在7.6.function definitions中的第一个代码框内的代码是什么意思?
看着不像是python的语法,还是我学的太浅,请帮我解答一下,谢谢!

ps:网页版不能上传图片吗?第一次使用SF提问。

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (3)
大家讲道理

https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form

    Ty80

    This is not a Python language, it is a language that describes languages. Used to describe Python's lexical and syntax.
    Not only Python, when you look at the specifications of various languages, there will be similar things.

      阿神

      This is grammar, mentioned in the principles of compilation
      It is similar to this sentence pattern in English:
      Sentence:= subject + predicate + object
      Subject:= noun
      Predicate:= verb
      Object:= noun

      := means definition.
      In this way, you can determine the components that a language sentence should have,
      For example,defmust be followed by an identifier.
      If not, it is not grammatical and will be judged as an error.

      The student answered and forgot everything he learned.
      That’s probably it. Please give me a slap in the face.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!