Python opens web pages and pauses instances
- 2020-04-02 14:12:32
- OfStack
This article illustrates the python method of opening and pausing a web page. Share with you for your reference.
The specific implementation code is as follows:
import webbrowser
import os
webbrowser.open_new_tab("//www.jb51.net/")
os.system("pause")# run windows the pause Command, waiting for user input
i = 0
while i<100:
if downloadUrlList == None:
break
webbrowser.open_new_tab(downloadUrlList.pop())
i = i + 1
if i % 10 == 0:
os.system("pause")
After running this article instance, a command line window pops up to parse the page, followed by a (link: #) page.
I hope this article has helped you with your Python programming.