Skip to content

Instantly share code, notes, and snippets.

@diggzhang
Created November 20, 2015 02:39
Show Gist options
  • Save diggzhang/38a9b45705702902daab to your computer and use it in GitHub Desktop.
Save diggzhang/38a9b45705702902daab to your computer and use it in GitHub Desktop.
简单的生成几百个落地页加Q的方法
# -*- coding: utf-8 -*-
import sys
import os
import time
url_list = [
"http://vs.yangcong345.com/三角形的高.html",
"http://vs.yangcong345.com/三角形的高.html",
"http://vs.yangcong345.com/三角形的高.html",
]
def url_add_q(urls, q):
url_list_with_q = []
for url in urls:
print(str(url) + "?q=" + q)
return url_list_with_q
q = raw_input("输入q:")
url_add_q(url_list, q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment