import pandas as pd
import openpyxl
#用来保存结果的列表
two = []
urltwo = []
urltwoo = []
three = []
urlthree = []
urlthreee = []
four = []
urlfour = []
urlfourr = []
five = []
urlfive = []
urlfivee = []
letters = "abcdefghijklmnopqrstuvwxyz"
#几位数,自己定
ttwo = [a+b for a in letters for b in letters]
tthree = [a+b+c for a in letters for b in letters for c in letters]
ffour = [a+b+c+d for a in letters for b in letters for c in letters for d in letters]
ffive = [a+b+c+d+e for a in letters for b in letters for c in letters for d in letters for e in letters]
#域名后缀
hz = "
logistics.com.br"
hz2 = "
comex.com"
#开始
for k2 in ttwo:
url2 = [k2 + hz]
url22 = [k2 + hz2]
urltwo.append(url2)
urltwoo.append(url22)
two = urltwo + urltwoo
for k3 in tthree:
url3 = [k3 + hz]
url33 = [k3 + hz2]
urlthree.append(url3)
urlthreee.append(url33)
three = urlthree + urlthreee
for k4 in ffour:
url4 = [k4 + hz]
url44 = [k4 + hz2]
urlfour.append(url4)
urlfourr.append(url44)
four = urlfour + urlfourr
for k5 in ffive:
url5 = [k5 + hz]
url55 = [k5 + hz2]
urlfive.append(url5)
urlfivee.append(url55)
five = urlfive + urlfivee
#导出结果
data = {'两个字母': two,'三个字母': three,'四个字母': four,'五个字母':five}
frame = pd.DataFrame(data)
frame.to_excel("E:\BaiduNetdiskWorkspace\个人\python\猜域名.xlsx")
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/791165
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.