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
精彩评论