摘要: 原文:http://gsw945.com/temp/flask-jsonp.py 阅读全文
posted @ 2017-02-09 13:51 webbky 阅读(4092) 评论(0) 推荐(0) 编辑
摘要: 1:Select A.name,B.name from A inner join B on A.id=B.id和 2:Select A.name,B.name from A,B where A.id=B.id结果是一样的(内连接的inner关键字可省略); 第一个是是在A 上面去关联B, 第二个是 阅读全文
posted @ 2017-02-07 12:07 webbky 阅读(13111) 评论(0) 推荐(0) 编辑
摘要: def baidu_tieba(url,begin_page,end_page): for i in range(begin_page, end_page+1): sName = string.zfill(i,5) + '.html' print ('ing %d') %i f = open(sName,'w+') m = ... 阅读全文
posted @ 2017-01-24 10:07 webbky 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 在代码的第一行加上#coding=utf-8 阅读全文
posted @ 2017-01-23 11:48 webbky 阅读(498) 评论(0) 推荐(0) 编辑
摘要: db.py main.py html 阅读全文
posted @ 2017-01-23 11:37 webbky 阅读(549) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import MySQLdb conn = MySQLdb.connect("localhost","root","123456","test1" ) cur = conn.cursor() #建立游标 sql = "select * from student" insert_sql="insert into student (id,n... 阅读全文
posted @ 2017-01-23 11:35 webbky 阅读(163) 评论(0) 推荐(0) 编辑
摘要: ln -s /usr/local/mysl/bin/* /usr/bin #建立软连接 sudo pip install mysql-python #安装 python #进入交互式命令环境 >>>>import MySQLdb # 不报错的话就安装成功啦 阅读全文
posted @ 2017-01-23 09:31 webbky 阅读(1838) 评论(0) 推荐(0) 编辑
摘要: html python >>> import os>>> os.urandom(24)'\xca\x0c\x86\x04\x98@\x02b\x1b7\x8c\x88]\x1b\xd7"+\xe6px@\xc3#\\' #生成随机的 secret_key 阅读全文
posted @ 2017-01-22 16:33 webbky 阅读(2782) 评论(0) 推荐(0) 编辑
摘要: html 阅读全文
posted @ 2017-01-22 15:37 webbky 阅读(19241) 评论(4) 推荐(1) 编辑
摘要: html 记得访问从服务里打开 表单html 不能直接打开表单html 阅读全文
posted @ 2017-01-22 13:55 webbky 阅读(9104) 评论(0) 推荐(0) 编辑