Lashtw commited on
Commit
9e035c6
·
verified ·
1 Parent(s): e8018c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -0
app.py CHANGED
@@ -4,6 +4,33 @@ import requests
4
  import json
5
  from io import StringIO
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  def process_number(number):
8
  """查詢特定數字並返回結果"""
9
  url = f"https://www.angio.net/newpi/piquery?q={number}"
 
4
  import json
5
  from io import StringIO
6
 
7
+ # 圓周率與無限猴子定理的介紹
8
+ st.title("探索圓周率與無限猴子定理的奇妙世界")
9
+ st.write("""
10
+ 歡迎參加這個有趣的活動!我們將一起探索圓周率 (π) 和無限猴子定理的奧秘,並透過幸運數字查詢系統,發現你選的數字在 π 中的秘密。
11
+
12
+ # 插入五張 GIF 圖片,每張獨占一列
13
+ st.subheader("活動視覺化展示")
14
+ col1 = st.columns(1) # 單列佈局
15
+ with col1[0]:
16
+ st.image("m1.GIF", caption="圓周率的無限展開", use_column_width=True)
17
+ col2 = st.columns(1)
18
+ with col2[0]:
19
+ st.image("m2.GIF", caption="猴子與打字機的隨機創作", use_column_width=True)
20
+ col3 = st.columns(1)
21
+ with col3[0]:
22
+ st.image("m3.GIF", caption="π 中的數字模式", use_column_width=True)
23
+ col4 = st.columns(1)
24
+ with col4[0]:
25
+ st.image("m4.GIF", caption="無限可能性的交匯", use_column_width=True)
26
+ col5 = st.columns(1)
27
+ with col5[0]:
28
+ st.image("m5.GIF", caption="你的幸運數字在 π 中?", use_column_width=True)
29
+
30
+ # 分隔線
31
+ st.markdown("---")
32
+
33
+ # 原始程式的其餘部分
34
  def process_number(number):
35
  """查詢特定數字並返回結果"""
36
  url = f"https://www.angio.net/newpi/piquery?q={number}"