美文网首页
2018-07-15

2018-07-15

作者: 鵜鶘 | 来源:发表于2018-07-16 08:49 被阅读0次

    代码块

    @requires_authorization
    def somefunc(param1='', param2=0):
        '''A docstring'''
        if param1 > param2: # interesting
            print 'Greater'
        return (param2 - param1 + 1) or None
    class SomeClass:
        pass
    >>> message = '''interpreter
    ... prompt'''
    

    LaTeX 公式

    可以创建行内公式,例如 \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N。或者块级公式:

    x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}

    表格

    Item Value Qty
    Computer 1600 USD 5
    Phone 12 USD 12
    Pipe 1 USD 234

    流程图

    st=>start: Start
    e=>end
    op=>operation: My Operation
    cond=>condition: Yes or No?
    
    st->op->cond
    cond(yes)->e
    cond(no)->op
    

    以及时序图:

    Alice->Bob: Hello Bob, how are you?
    Note right of Bob: Bob thinks
    Bob-->Alice: I am good thanks!
    

    代码块

    @requires_authorization
    def somefunc(param1='', param2=0):
        '''A docstring'''
        if param1 > param2: # interesting
            print 'Greater'
        return (param2 - param1 + 1) or None
    class SomeClass:
        pass
    >>> message = '''interpreter
    ... prompt'''
    

    LaTeX 公式

    可以创建行内公式,例如 \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N。或者块级公式:

    x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}

    表格

    Item Value Qty
    Computer 1600 USD 5
    Phone 12 USD 12
    Pipe 1 USD 234

    流程图

    st=>start: Start
    e=>end
    op=>operation: My Operation
    cond=>condition: Yes or No?
    
    st->op->cond
    cond(yes)->e
    cond(no)->op
    

    以及时序图:

    Alice->Bob: Hello Bob, how are you?
    Note right of Bob: Bob thinks
    Bob-->Alice: I am good thanks!
    

    相关文章

      网友评论

          本文标题:2018-07-15

          本文链接:https://www.haomeiwen.com/subject/quvppftx.html