Python使用webbrowser模块来实现弹出一个网页
如果你希望在别人运行你的程序时弹出一个指向自己网站的页面,你可以通过以下代码来实现:
import webbrowser
webbrowser.open('https://perfcode.com')
webbrowser模块在python3中自带,不需要我们安装。
如果你希望在别人运行你的程序时弹出一个指向自己网站的页面,你可以通过以下代码来实现:
import webbrowser
webbrowser.open('https://perfcode.com')
webbrowser模块在python3中自带,不需要我们安装。
原创内容,如需转载,请注明出处;
关注微信公众号,免费向我提问;