0c84ee8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st import webbrowser # 定义跳转到 Google 的函数 def redirect_to_google(): url = 'https://www.google.com' webbrowser.open_new_tab(url) # # 在应用程序中调用跳转函数 # redirect_to_google() if st.button('go'): print('go') redirect_to_google()