摘要: 1 from flask import Flask,render_template 2 from flask import request 3 app = Flask(__name__) 4 5 @app.route('/',methods=['GET','POST']) 6 def home(): 7 return render_template('home.html'... 阅读全文
posted @ 2017-02-10 11:59 Erick-LONG 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 1 from bs4 import BeautifulSoup 2 import requests 3 from random import choice 4 import csv 5 6 headers1 = {'User-Agent':'spider'} 7 headers2 = {'User-Agent':'spider'} 8 hehe = [headers1,head... 阅读全文
posted @ 2017-02-10 11:31 Erick-LONG 阅读(3028) 评论(0) 推荐(0) 编辑
摘要: 1 from bs4 import BeautifulSoup 2 import requests,urllib.request,urllib.parse 3 import json 4 import time 5 import os 6 headers = {'User-Agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac ... 阅读全文
posted @ 2017-02-10 11:22 Erick-LONG 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 1 from time import ctime,sleep 2 import threading 3 def music(): 4 for i in range(2): 5 print ("I was listening to music. %s" %ctime()) 6 sleep(4) 7 8 def move(): 9 ... 阅读全文
posted @ 2017-02-10 11:19 Erick-LONG 阅读(192) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2017-02-10 11:16 Erick-LONG 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 import random 4 temp ='' 5 for i in range(6): 6 num = random.randrange(0,4) 7 if num ==3 or num == 1: 8 rad2 = random.randra... 阅读全文
posted @ 2017-02-10 08:00 Erick-LONG 阅读(221) 评论(0) 推荐(0) 编辑