37,721
社区成员
发帖
与我相关
我的任务
分享
#! /usr/bin/env python
#coding=utf-8
import time
import os
str1 = open( r'C:\Users\python\Desktop\url.txt' ,'r').readlines()
num = 0
while num <= len(str1):
com =r'"D:\Program Files (x86)\Mozilla Firefox\firefox.exe" %s'%(str1[num])
print com
os.system(com)
num = num +1
time.sleep(2)
else:
print 'url open end!!!!'
while num <= len(str1):
改成
while num < len(str1):