欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Python读取excel表格中的网址并批量打开网页

程序员文章站 2022-04-30 14:01:47
...
import webbrowser
import  xlrd

wb = xlrd.open_workbook("demo.xlsx")
sht = wb.sheet_by_name("Sheet1")
for x in range(sht.nrows):
    webbrowser.open(sht.cell(x, 1).value)
    # 用系统默认浏览器打开指定网页

Python读取excel表格中的网址并批量打开网页

相关标签: Python