From cef903554ce7fdcf45517a9e9eae6aacef4d14a0 Mon Sep 17 00:00:00 2001 From: He Xuemeng <24073077g@connect.polyu.hk> Date: Mon, 16 Sep 2024 02:40:57 +0000 Subject: [PATCH] add basic python code --- streamlit_test1.py | 8 ++++++++ README.md | 2 +- hello.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 streamlit_test1.py create mode 100644 hello.py diff --git a/ streamlit_test1.py b/ streamlit_test1.py new file mode 100644 index 0000000..0533ae9 --- /dev/null +++ b/ streamlit_test1.py @@ -0,0 +1,8 @@ +import streamlit as st + +# Create a text input box +text_input = st.text_input("Enter some text:") +# Create a submit button + +if st.button("Submit"): + st.write("You've inputted:", text_input) \ No newline at end of file diff --git a/README.md b/README.md index efc9e8d..7e01b1f 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# python_labs \ No newline at end of file +# python_labs \ No newline at end of file diff --git a/hello.py b/hello.py new file mode 100644 index 0000000..e75154b --- /dev/null +++ b/hello.py @@ -0,0 +1 @@ +print("hello world") \ No newline at end of file