显示文本
#显示文本
st.write("Hello,let's learn how to build a streamlit app together")
st.title()
:用于添加应用程序的标题st.header()
:用于设置节的标题st.subheader()
:用于设置节的子标题st.text()
:用于编写特定图形的描述st.markdown()
:用于将文本显示为 Markdownst.latex()
:用于在仪表板中显示数学表达式st.write()
:用于显示所有内容,例如绘图、数据框、函数、模型等st.sidebar()
:用于在侧边栏上显示数据st.dataframe()
:用于显示数据框st.map()
:用于以单行代码等显示地图st.caption()
:用于写字幕st.code()
&#x