我找到了一些信件,但我需要找到其他信件,例如" c"," m"," p",这是否可能?
答案 0 :(得分:41)
查看维基百科文章Unicode subscripts and superscripts。看起来它们分布在不同的范围内,并非所有字符都可用。
整合用于剪切和粘贴目的,Unicode标准 为数字和常见定义完整的子脚本和超级脚本 数学符号(⁰¹³⁴⁵⁶⁷⁸⁹⁻⁼⁽⁾₂₂₂₂₂₇₇₇₇₇₇₇₇₇₇ ₉₊₋₌₍₎),除q以外的完整上标拉丁小写字母( ᵃᵇᵈᵈᶠᵍʰʲᵏˡᵐⁿᵖʳˢᵗᵘᵛʷʸᶻ,),限量版 大写拉丁字母(ᴬᴮᴰᴱᴴᴵᴶᴷᴸᴹᴺᴼᴿᵀᵁᵂᵂ),a 少数下标小写字母(ₐₑₕᵢⱼₖₗₘₙₒₚₛₛᵤᵤᵥₓ )和一些希腊字母(ᵅᵝᵞᵟᵋᶿᶥᶲᵠᵡᵦᵧᵨᵪᵪ)。注意 由于这些字形来自不同的范围,它们可能不属于 相同的大小和位置,取决于字体。
答案 1 :(得分:25)
您可以从其他答案中提到的维基百科页面复制characters
。然后在python中
characters = '⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ ᴬ ᴮ ᴰ ᴱ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴼ ᴾ ᴿ ᵀ ᵁ ⱽ ᵂ ₐ ₑ ₕ ᵢ ⱼ ₖ ₗ ₘ ₙ ₒ ₚ ᵣ ₛ ₜ ᵤ ᵥ ₓ ᵅ ᵝ ᵞ ᵟ ᵋ ᶿ ᶥ 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= 0x1d5dᵞ= 0x1d5eᵟ= 0x1d5fᵋ= 0x1d4bᶿ= 0x1dbfᶥ= 0x1da5ᶲ= 0x1db2ᵠ= 0x1d60ᵡ= 0x1d61
ᵦ= 0x1d66ᵧ= 0x1d67ᵨ= 0x1d68ᵩ= 0x1d69ᵪ= 0x1d6a
答案 2 :(得分:14)
import sys
# on windows run from QtConsole for unicode
# (Cmd console only support codepage characters)
# At present (6/10/2017), superscripts/subscript chars
# are best viewed with terminal/text-editor set to monospace font
# "DejaVu Sans Mono"
# "Consolas" works also, but is missing a few characters...
# and, "Courier" has the worst support at present...
if int(sys.version[0]) != 3:
print('Aborted: Python 3.x required')
sys.exit(1)
def table():
unicode_map = {
# superscript subscript
'0' : ('\u2070', '\u2080' ),
'1' : ('\u00B9', '\u2081' ),
'2' : ('\u00B2', '\u2082' ),
'3' : ('\u00B3', '\u2083' ),
'4' : ('\u2074', '\u2084' ),
'5' : ('\u2075', '\u2085' ),
'6' : ('\u2076', '\u2086' ),
'7' : ('\u2077', '\u2087' ),
'8' : ('\u2078', '\u2088' ),
'9' : ('\u2079', '\u2089' ),
'a' : ('\u1d43', '\u2090' ),
'b' : ('\u1d47', '?' ),
'c' : ('\u1d9c', '?' ),
'd' : ('\u1d48', '?' ),
'e' : ('\u1d49', '\u2091' ),
'f' : ('\u1da0', '?' ),
'g' : ('\u1d4d', '?' ),
'h' : ('\u02b0', '\u2095' ),
'i' : ('\u2071', '\u1d62' ),
'j' : ('\u02b2', '\u2c7c' ),
'k' : ('\u1d4f', '\u2096' ),
'l' : ('\u02e1', '\u2097' ),
'm' : ('\u1d50', '\u2098' ),
'n' : ('\u207f', '\u2099' ),
'o' : ('\u1d52', '\u2092' ),
'p' : ('\u1d56', '\u209a' ),
'q' : ('?', '?' ),
'r' : ('\u02b3', '\u1d63' ),
's' : ('\u02e2', '\u209b' ),
't' : ('\u1d57', '\u209c' ),
'u' : ('\u1d58', '\u1d64' ),
'v' : ('\u1d5b', '\u1d65' ),
'w' : ('\u02b7', '?' ),
'x' : ('\u02e3', '\u2093' ),
'y' : ('\u02b8', '?' ),
'z' : ('?', '?' ),
'A' : ('\u1d2c', '?' ),
'B' : ('\u1d2e', '?' ),
'C' : ('?', '?' ),
'D' : ('\u1d30', '?' ),
'E' : ('\u1d31', '?' ),
'F' : ('?', '?' ),
'G' : ('\u1d33', '?' ),
'H' : ('\u1d34', '?' ),
'I' : ('\u1d35', '?' ),
'J' : ('\u1d36', '?' ),
'K' : ('\u1d37', '?' ),
'L' : ('\u1d38', '?' ),
'M' : ('\u1d39', '?' ),
'N' : ('\u1d3a', '?' ),
'O' : ('\u1d3c', '?' ),
'P' : ('\u1d3e', '?' ),
'Q' : ('?', '?' ),
'R' : ('\u1d3f', '?' ),
'S' : ('?', '?' ),
'T' : ('\u1d40', '?' ),
'U' : ('\u1d41', '?' ),
'V' : ('\u2c7d', '?' ),
'W' : ('\u1d42', '?' ),
'X' : ('?', '?' ),
'Y' : ('?', '?' ),
'Z' : ('?', '?' ),
'+' : ('\u207A', '\u208A' ),
'-' : ('\u207B', '\u208B' ),
'=' : ('\u207C', '\u208C' ),
'(' : ('\u207D', '\u208D' ),
')' : ('\u207E', '\u208E' ),
':alpha' : ('\u1d45', '?' ),
':beta' : ('\u1d5d', '\u1d66' ),
':gamma' : ('\u1d5e', '\u1d67' ),
':delta' : ('\u1d5f', '?' ),
':epsilon' : ('\u1d4b', '?' ),
':theta' : ('\u1dbf', '?' ),
':iota' : ('\u1da5', '?' ),
':pho' : ('?', '\u1d68' ),
':phi' : ('\u1db2', '?' ),
':psi' : ('\u1d60', '\u1d69' ),
':chi' : ('\u1d61', '\u1d6a' ),
':coffee' : ('\u2615', '\u2615' )
}
keys = sorted(unicode_map.keys())
for key in keys:
spr = "X" + unicode_map[key][0]
sub = "X" + unicode_map[key][1]
if (spr == "X?"): spr = ""
if (sub == "X?"): sub = ""
print('%-15s %s %s' % (key, spr, sub))
table()