streamlit如何布局

作为streamlit的重度用户,不会布局,写出来的程序总觉的有些憋手.虽然功能不影响,但使用起来就是有些不爽.
下面是几种布局方式的介绍举例.

  1. st.sidebar 侧边栏
    侧边栏可以调整大小!拖动并放下侧边栏的右边界以调整其大小!
# "with" notation
with st.sidebar:
    st.[element_name]
import streamlit as st

# Using object notation
add_selectbox =<

你可能感兴趣的:(python,streamlit,web,数据分析)