python调用chrome打开指定网址

#!/usr/bin/python
# -*- coding:utf-8 -*-

import os

f = open("chrome_cmd_path.txt")
chrome = f.readline().strip()
f.close()
url = "https://www.baidu.com"
cmd = "start /B \"\" \"%s\" -kiosk %s" % (chrome, url)
print cmd
os.system(cmd)

简单记录

posted @ 2017-08-02 10:22  清风@_@  阅读(5094)  评论(0编辑  收藏  举报