views:

64

answers:

1

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?

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

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

SilentGhost
you are a very kind person!!thaks very very very much!!
ant
@ant: you're welcome to accept my answer :)
SilentGhost
@ant yes, as we say on SO: thanks are nice but acceptance matters -- just click on the checkmark-shaped icon under the big digit on SilentGhost's answer upper left!
Alex Martelli
sorry, but i'm not registered... the next time i will :)
ant