mathzhaoliang
V2EX  ›  GitHub

github 代码注释里面怎么打出上标和下标

  •  
  •   mathzhaoliang ·
    neozhaoliang · Feb 20, 2020 · 3047 views
    This topic created in 2320 days ago, the information mentioned may be changed or developed.

    看这个代码:

    https://github.com/rougier/grayscott/blob/master/grayscott.py#L47

    注意我问的不是 markdown 语法, 就是代码的注释.

    我好奇他是怎么做到直接打出下标来的.

    4 replies    2020-02-20 09:18:58 +08:00
    noe132
        1
    noe132  
       Feb 20, 2020 via Android
    anwser: just 打出来。
    ∂u/∂t = rᵤ∇²u - uv² + f(1-u)
    ∂v/∂t = rᵥ∇²v + uv² - (f+k)v
    mathzhaoliang
        2
    mathzhaoliang  
    OP
       Feb 20, 2020
    @noe132 啊啊啊, 下标怎么打的
    300
        3
    300  
       Feb 20, 2020   ❤️ 1
    就是普通字符,有的输入法自带
    你可以搞个占位符,后期全局替换
    ⒈⒉⒊⒋⒌⒍
    ¹²³½⅓⅔¼¾㈠㈡㈢
    input2output
        4
    input2output  
       Feb 20, 2020   ❤️ 1
    0⁰ 0¹ 0² 0³ 0⁴ 0⁵ 0⁶ 0⁷ 0⁸ 0⁹
    A₀ A₁ A₂ A₃ A₄ A₅ A₆ A₇ A₈ A₉ A₊ A₋ A₌ A₍ ₎ Aₐ Aₑ Aₒ Aₓ Aₔ Aₕ Aₖ Aₗ Aₘ Aₙ Aₚ Aₛ Aₜ

    Google: 角标 符号
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 19:26 · PVG 03:26 · LAX 12:26 · JFK 15:26
    ♥ Do have faith in what you're doing.