📜  streamlit 下拉列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:58.388000             🧑  作者: Mango

代码示例2
# Add selectbox in streamlit
>>> option = st.selectbox(
...     'How would you like to be contacted?',
...     ('Email', 'Home phone', 'Mobile phone'))
>>>
>>> st.write('You selected:', option)