主题

将页面文件放到pages目录下,会被自动设备为sidebar
python
import streamlit as st
add_selectbox = st.sidebar.selectbox(
"联系方式?",
("邮箱", "手机号")
)
# Using "with" notation
with st.sidebar:
add_radio = st.radio(
"选择开通方式",
("1天体验卡", "连续包月","包年")
)
st.button(label="提交")