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)
简单记录