Home  >  Article  >  Backend Development  >  How to express subscript in python

How to express subscript in python

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-06-25 09:55:1825138browse

How to express subscript in python

How to express subscript in python? Let me give you a detailed introduction to how to express:

The superscript in mathematical formulas uses the ^ symbol, and the subscript uses the _ symbol.

If the superscript and subscript have only one symbol, they do not need to be enclosed in curly braces;

If the superscript and subscript have more than one character, they must be enclosed in curly braces.

Related recommendations: "Python Video Tutorial"

Example:

a_1, a_2, \dots, a_n \newline
a_1^2, a_2^2, \dots, a_n^2\newline
2016^{2016}\newline
a_{2016}

Effect:

How to express subscript in python##

The above is the detailed content of How to express subscript in python. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to uninstall pythonNext article:How to uninstall python