使用Python開啟瀏覽器及瀏覽網頁

import webbrowser
a=webbrowser.get(' windows-default')
a.open("https://www.google.com/")
webbrowser.open_new('https://www.github.com')
webbrowser.open_new_tab('https://www.github.com')
-------------------------------------------------------------import webbrowserwebbrowser.open('https://www.google.com')# 使用新視窗、Tab開啟頁面webbrowser.open_new('https://www.google.com')webbrowser.open_new_tab('https://www.google.com'

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store