开发者

How to add a '-' apex in Python

开发者 https://www.devze.com 2023-01-01 22:13 出处:网络
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 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

精彩评论

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