开发者

How to add a '-' apex in Python

I have a problem: i can't find the '-' apex character... i'm writing code on math 开发者_运维技巧function: and i want to insert representation like ², ³. i found that print '\xb2, \xb3' work good. now, i have to insert negative numbers at the apex, like :¯². so, i need the ¯ charachter. How can i find that?


>>> print('\xaf')       # or '\u00af'
¯                       # macron
>>> print('\u2212')
−                       # minus
>>> print('\u207b')
⁻                       # superscript minus

You'll need u'' notation in python-2.x

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜