- 博客(8)
- 资源 (28)
- 收藏
- 关注
原创 List数据汇总
对List数据进行汇总,要求count相同,且日期必须连续,对日期进行合并----------原始数据------------- date count2019-01-01 12019-01-02 12019-01-03 12019-0...
2019-11-01 11:38:23
1441
原创 Python Scrapy 入门
1. 准备环境 Python 、Scrapy、 IDE(Pycharm)2. 爬取目标分析 北京七天的天气 url:http://www.weather.com.cn/weather/101010100.shtml 需要抓取的字段, date(日期) 、weather(天气)、temperature(温度)、windDirection(风...
2019-10-15 14:46:25
148
转载 window 安装/卸载 psycopg2
查看python 版本python --version 下载对应版本的 psycopg2 :https://pypi.org/project/psycopg2/#files使用pip安装下载的文件(安装成功即可)pip install psycopg2-2.8.3-cp27-cp27m-win_amd64.whl---------------------...
2019-07-17 16:10:13
1031
原创 python 抽奖概率
代码:# -*- coding: utf-8 -*-import random# 抽奖概率(可设置)randomList = []# 奖项 10个gift = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]# 设置礼品和抽奖百分比概率r = [{'giftIndex': 0, 'value': 1}, {'giftIndex': 1, 'value'...
2019-06-21 15:32:31
4585
原创 gradle-Springboot-MybatisGenerator-postgresql
mybatis-Generator官方文档:http://www.mybatis.org/genera...Gradle官方文档:https://plugins.gradle.org/pl...gradlebuildscript { repositories { mavenCentral() //maven库 maven {...
2019-03-26 17:04:15
760
原创 [新手学java] gradle +spring(4.3) +mybatis(3.4) 之 mybatis 读取数据库数据到 Model中,时间转换问题
在学习java 的过程中遇到 mybatis 读取数据库数据 到model中 转换成json,时间问题。数据库存储格式为: 年-月-日 时:分:秒读取到modle中格式为:2017-06-12 LargeTypeMapper.xml 配置如下 (网上说 加上 jdbcType="TIMESTAMP" 结果加上还是不行 ,修改 也不能解决。)
2017-06-16 14:26:58
308
原创 遇到的一个sql的面试题
表结构表名:stu将stu 改为 如下显示方式 方法1:select table1.studentname,table1.语文,table2.数学,table3.英语 from ( select studentname, isnull(score,0) as '语文' from stu where objname='语文') as table1inner join
2013-04-17 16:36:40
431
原创 c# 文件目录的获取
//网站及文件路径Demo: /FxtxTest/delegate/delegateDEMO.aspx//获取服务器上asp.net应用程序的虚拟应用程序根路径Request.ApplicationPath; //返回值:/FxtxTest //获取当前执行服务器应用程序的根目录的物理文件系统路径Request.PhysicalApplicationPath; //返回值:E:\F
2013-04-15 13:48:30
410
spy4 win7专用
2014-03-18
易用API伴侣
2014-03-18
OD 小甲鱼用的
2014-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人