text_input | 문자를 입력받는다. |
number_input | 숫자를 입력받는다. |
date_input | 날짜를 입력받는다. |
time_input | 시간을 입력받는다. |
text_input('',type='password') | 비밀번호를 입력받는다. |
color_picker | 색상코드를 입력받는다. |
1. text_input
name = st.text_input('이름을 입력하세요')
st.title(name)
2. number_input
year = st.number_input('출생년도를 입력하세요.',min_value=1,max_value=9000)
st.text(year)
3. date_time
my_date = st.date_input('약속날짜 입력 : ')
st.write(my_date)
4. time_input
my_time = st.time_input('약속 시간 선택 : ')
st.text(my_time)
5. text_input , type = 'password'
password = st.text_input('비밀번호 입력',type='password')
st.text(password)
6. color_picker
color = st.color_picker('색을 선택하세요.')
st.text(color)
'개발 > 대시보드' 카테고리의 다른 글
웹 대시보드 - sidebar 를 사용할 때 파일을 분리하여 개발하는 방법. (0) | 2022.12.13 |
---|---|
웹 대시보드 - 업로드(image,csv) (0) | 2022.12.13 |
웹 대시보드 - 여러 UI 함수 4(Image,video) (0) | 2022.12.12 |
웹 대시보드 - 여러 UI 함수 3(button,radio,checkbox,selectbox,multiselect,slider,expander) (0) | 2022.12.12 |
웹대시보드 - 데이터프레임을 읽어 streamlit 으로 출력 (0) | 2022.12.12 |