简体   繁体   中英

Open webpage after IDLE has completed running the script Python

I have written my script in Python. After the script runs in IDLE(finishes running, i want to open a webpage(IDLE will open the webpage in the default browser) where the result will be displayed. Can this be done? If so, pls help. Thank You

It could be done, using standard python library: http://docs.python.org/library/webbrowser.html

import webbrowser

webbrowser.open(url[, new=0[, autoraise=True]])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM