上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: # -*- coding: utf-8 -*- import requests import urllib import os import threading import datetime gImageList = [] gCondition = threading.Condition() cl 阅读全文
posted @ 2017-01-17 14:41 糖饼好吃 阅读(84) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/fnng/p/3670789.html#coding=utf-8from time import ctime,sleepimport threadingdef music(func): for i in range(2): print "I was listen to %s. %s" %(func,ctime()) s... 阅读全文
posted @ 2017-01-17 14:35 糖饼好吃 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/fnng/p/3576154.html 一,获取整个页面数据 首先我们可以先获取要下载图片的整个页面信息。 getjpg.py #coding=utf-8import urllib def getHtml(url): page = urllib.u 阅读全文
posted @ 2017-01-17 14:34 糖饼好吃 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 生成200个10位的随机数(生成优惠券):__author__ = 'friday'import randomdef creat_num(num,long): str = 'qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*_+' b = [] for i in range(num): a = '' for j i... 阅读全文
posted @ 2017-01-17 14:33 糖饼好吃 阅读(189) 评论(0) 推荐(0) 编辑
摘要: https://pypi.python.org/pypi/MySQL-python/1.2.4 (在这下载mysql模块)python 操作mysql数据库基础#coding=utf-8import MySQLdb conn= MySQLdb.connect( host='127.0.0.1', port = 3306, user='root', ... 阅读全文
posted @ 2017-01-17 14:32 糖饼好吃 阅读(98) 评论(0) 推荐(0) 编辑
摘要: CREATE DEFINER=`root`@`localhost` FUNCTION `补填推广人信息`(invite_id INT(10), invitee_id INT(10)) RETURNS int(10)BEGINIF (SELECT COUNT(F01) FROM S61.T6111 WHERE F01=invitee_id AND F03 IS NULL AND F04 IS NU... 阅读全文
posted @ 2017-01-17 14:28 糖饼好吃 阅读(173) 评论(0) 推荐(0) 编辑
摘要: BEGINDECLARE Done INT DEFAULT 0;DECLARE exdate datetime;DECLARE textdata text;DECLARE m_time datetime;DECLARE b_num varchar(20);DECLARE telwq varchar(20);DECLARE telhb varchar(20);DECLARE telsj varcha... 阅读全文
posted @ 2017-01-17 14:27 糖饼好吃 阅读(413) 评论(0) 推荐(0) 编辑
摘要: BEGINDECLARE Done INT DEFAULT 0;DECLARE number VARCHAR(40) character set gbk;DECLARE id int;DECLARE c int;DECLARE d datetime;DECLARE money decimal(20,2) DEFAULT 0.00;DECLARE Textdata1 text character s... 阅读全文
posted @ 2017-01-17 14:26 糖饼好吃 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1、创建数据库Create DATABASE database-name2、删除数据库drop database dbname3、备份sql server /* 备份 */backup database Test to disk='D:/Test.bak'3. /* 还原 */restore database Test from disk='D:/Test.bak'4、创建新表crea... 阅读全文
posted @ 2017-01-17 14:24 糖饼好吃 阅读(156) 评论(0) 推荐(0) 编辑
摘要: -- 创建用户 CREATE USER 'wangjieming'@'192.168.%.%' IDENTIFIED BY "fullshare"; -- 授权 grant select, insert, update, delete,CREATE,DROP on fullshare_campaig 阅读全文
posted @ 2017-01-17 14:23 糖饼好吃 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页