1.startfile方法

import os
os.startfile("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe")

2.system方法

import os
os.system(r'C:\"Program Files (x86)"\"Google"\"Chrome"\"Application"\chrome.exe')

3.更好地解决方案WEBBROWER

import webbrowser
webbrowser.open("http://www.baidu.com")

 

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
猜你喜欢
  • 2021-08-11
  • 2021-09-29
  • 2021-12-26
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案