개발/대시보드
웹 대시보드 - 입력받기(input)
웅'jk
2022. 12. 13. 11:05
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)