Python-Open website
2015-09-29 15:43
411 查看
http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/
下载pywin32-219.win-amd64-py2.7.exe
#coding=utf-8
import win32com.client
import os,sys,time
urls = ['http://google.com','http://baidu.com']
def open_site():
for url in urls:
ie6=win32com.client.Dispatch("InternetExplorer.Application")
print url
ie6.Navigate(url)
ie6.Visible=1
time.sleep(2)
def main():
open_site()
if __name__ == '__main__':
main()
下载pywin32-219.win-amd64-py2.7.exe
#coding=utf-8
import win32com.client
import os,sys,time
urls = ['http://google.com','http://baidu.com']
def open_site():
for url in urls:
ie6=win32com.client.Dispatch("InternetExplorer.Application")
print url
ie6.Navigate(url)
ie6.Visible=1
time.sleep(2)
def main():
open_site()
if __name__ == '__main__':
main()
相关文章推荐
- Python中的对象赋值、浅拷贝与深拷贝
- Python Dict 词典的用法
- [转载]python encode和decode函数说明
- python 格式规范工具 autopep8 Tool to convert Python code to be PEP8 compliant
- [转载]Python2.7 urlparse学习
- python——string
- LeetCode----Ugly Number
- Python之下载安装以及第一个例子
- [转载]用python解析html--SGMLParser
- [转载]python模块学习---HTMLParser(解析HTML文档元素)
- 【代码片段】汉诺塔python
- 用python实现远程复制 (scp + expect )
- python中的enumerate
- python实现目录下文件名匹配的进行迁移
- python学习笔记1:python入门
- python学习笔记1:python入门
- 猪和python(pig and python)
- python 缺少包
- python
- PythonChallenge过关斩将录-0~10关