UPDATE

上级 8d3e7456
......@@ -18,3 +18,21 @@ content = response.read().decode('utf-8')
# (4)打印数据
print(content)
import streamlit as st
# 创建一个标题
st.title('My First Streamlit App')
# 创建一个文本框并接收用户输入
user_input = st.text_input('Enter your name')
# 判断用户是否有输入,并输出一句问候语
if user_input != '':
st.write('Hello,', user_input, '!')
else:
st.write('Please enter your name.')
import subprocess
subprocess.run(["streamlit", "run", "main.py"])
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册