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
2010-05-31 15:26:36
you are a very kind person!!thaks very very very much!!
ant
2010-05-31 15:56:51
@ant: you're welcome to accept my answer :)
SilentGhost
2010-05-31 16:01:08
@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
2010-05-31 16:38:51
sorry, but i'm not registered... the next time i will :)
ant
2010-05-31 17:59:47