st.markdown
import streamlit as st
import pandas as pd
import numpy as np
st.markdown(body, unsafe_allow_html=False)
markdown语法: GitHub Flavored Markdown Spec
st.markdown('Streamlit is **_really_ cool**.')
st.title("st.title")
st.header("st.header")
st.subheader("st.subheader")
st.markdown('# foo')
st.markdown('## foo')
st.markdown('### foo')
st.markdown('#### foo')
st.markdown('##### foo')
st.markdown('###### foo')
st.markdown('# foo *bar* \*baz\*')
st.markdown('------')
st.markdown('> you chou wo shi sha')
st.markdown(
'''
- first
- second
- third
- you lihai
- shima
- shide
''')
st.markdown("***markdown粗斜体***")
st.latex
st.latex(r'''
a + ar + a r^2 + a r^3 + \cdots + a r^{n-1} =
\sum_{k=0}^{n-1} ar^k =
a \left(\frac{1-r^{n}}{1-r}\right)
''')
st.latex(r'''
\overrightarrow{AB}
''')
st.latex(r'''
\lgroup
\rgroup
''')
st.latex(r'''
\begin{vmatrix}
a & b \\
c & d
\end{vmatrix}
''')
st.latex(r'''
\def\arraystretch{1.5}
\begin{array}{c:c:c}
a & b & c \\ \hline
d & e & f \\
\hdashline
g & h & i
\end{array}
''')
st.code
code = '''def hello():
print("Hello, Streamlit!")'''
st.code(code, language='python')