Python能否与Chrome等应用程序合作?你知道吗
比如:
from Tkinter import *
from (straightAccesToApps) import (straightAccesToApps)
main = Tk()
def runChrome():
straightAccesToApps('C:\\Desktop\Chrome').run()
main.quit()
Button(main, text="Chrome", command=runChrome).pack()
main.mainloop()
通过selenium webdriver,事实上的行业标准:http://www.seleniumhq.org
是的,python可以通过多种方式做到这一点:
1.通过webbrowser等模块:
2.通过
os.system
或subprocess.call
:3.通过powershell,但这有点过分了
相关问题 更多 >
编程相关推荐