一.算法题题目Youaregiventwonon-emptylinkedlistsrepresentingtwonon-negativeintegers.Thedigitsarestoredinreverseorderandeachoftheirnodescontainasingledigit.Addthetwonumbersandreturnitasalinkedlist.Youmayassum
分类:
编程语言 时间:
2018-12-17 16:03:14
阅读次数:
170
模型 /// <summary> /// 状态 /// =0 下架 =1 上架 /// </summary> public System.Int32 Status { get; set; } 视图 <tr> <th>状态:</th> <td> <select name="Status" id="St ...
分类:
Web程序 时间:
2018-12-17 14:35:02
阅读次数:
203
if (typeof (WeixinJSBridge) == "undefined") { document.addEventListener("WeixinJSBridgeReady", function (e) { setTimeout(function () { // 直接修改用户设置的/默认 ...
分类:
其他好文 时间:
2018-12-17 11:46:08
阅读次数:
239
#!/usr/bin/env python# -*- coding:utf-8 -*-import osimport pylab as pyimport numpy as npfrom matplotlib import pyplot as pltimport matplotlib as mplt# ...
分类:
编程语言 时间:
2018-12-17 02:28:53
阅读次数:
520
1、引入maven依赖 2、redis连接配置 3、redisTemplate配置,其实springboot2不配置也是可以直接使用的,但是我们可以指定一下key,value序列化的方式,如下 4、KeyPrefix类定义,方便管理key的前缀与超时时间(防止key管理混乱,出现后面的key覆盖前面 ...
分类:
编程语言 时间:
2018-12-17 02:26:36
阅读次数:
371
1.CREATE 如果没设置默认数据库会报错: Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the ...
分类:
数据库 时间:
2018-12-17 02:25:23
阅读次数:
230
题目描述 在一个字符串(0<=字符串长度<=10000,全部由字母组成)中找到第一个只出现一次的字符,并返回它的位置, 如果没有则返回 -1(需要区分大小写). 一次遍历存储到哈希表 一次遍历取Value为1的第一个字符的索引 class Solution { public: int FirstNo ...
分类:
其他好文 时间:
2018-12-17 02:13:29
阅读次数:
173
deck-overlay中 首先使用d3中的scaleQuantile将数据进行分类,scaleQuantile方法是d3中的一种数据分类方法(https://www.cnblogs.com/kidsitcn/p/7182274.html)https://raw.githubusercontent. ...
分类:
其他好文 时间:
2018-12-17 02:05:32
阅读次数:
217
还记得原来写过一个对图像进行波纹扭曲操作的博文。 这次实现的是水波特效,其实就是通过正余弦函数表示波纹中心位置慢慢向外扩散,通过叠加衰减因子使振幅不断减小,进而产生水波的效果。 效果如下: 原图: 波纹特效: matlab代码如下: 关注公众号: MATLAB基于模型的设计 (ID:xaxymake ...
分类:
其他好文 时间:
2018-12-16 23:30:04
阅读次数:
183
1. __doc__ 描述类的信息 显示的结果: 2. __call__ 对象后面加括号,触发执行 显示的结果: 3. __dict__ 查看类或对象中的所有成员 显示的结果: {'__weakref__': <attribute '__weakref__' of 'Foo' objects>, ' ...
分类:
其他好文 时间:
2018-12-16 23:22:19
阅读次数:
141