search

Home  >  Q&A  >  body text

Python 文档中的这种语法叫什么? 怎么阅读?

2016/11/24

问题

由于是 unknown knowledge

无奈连关键词都不知道组织 ( 它的作用还是知道的: 定义一般形式 )

相关代码

try_stmt  ::=  try1_stmt | try2_stmt
try1_stmt ::=  "try" ":" suite
               ("except" [expression [("as" | ",") identifier]] ":" suite)+
               ["else" ":" suite]
               ["finally" ":" suite]
try2_stmt ::=  "try" ":" suite
               "finally" ":" suite

上下文环境

  1. Python 官方doc

尝试解决

大家讲道理大家讲道理2911 days ago298

reply all(1)I'll reply

  • PHPz

    PHPz2017-04-18 10:00:24

    BNF paradigm
    can be thought of as a language that describes the grammar of a language
    Transport
    http://baike.baidu.com/link?u...

    reply
    0
  • Cancelreply