1.users的数据表设计: 1.重建用户表: 1.在settings中配置: 2.apps/users/models.py中建立UserProfile表: 3.执行数据更新命令: 2.建立地区表: 1.在apps/users/models.py中建立地区表: 2.执行数据更新命令: 2.ad的数据 ...
分类:
微信 时间:
2019-04-30 20:12:03
阅读次数:
162
前言 先说说 提起React.PureComponent,我们还要从一个生命周期函数 shouldComponentUpdate 说起,从函数名字我们就能看出来,这个函数是用来控制 组件是否应该被更新 的。 React.PureComponent 通过prop和state的 来实现shouldCom ...
分类:
其他好文 时间:
2019-04-30 20:03:05
阅读次数:
119
1. 补足日期类实现,使得能够根据日期获取这是一年中第多少天。 ...
分类:
其他好文 时间:
2019-04-30 15:41:46
阅读次数:
125
include include define max 30 typedef struct{ int data; int front,rear; }circqueue; //给队列赋值 int firstadd(circqueue q){ q data=(int )malloc(max sizeof( ...
分类:
其他好文 时间:
2019-04-30 12:12:55
阅读次数:
106
最近刷笔试题遇到的问题,记录下来。 在这里看到了try >但有一点是可以肯定的,finally块中的内容会先于try中的return语句执行,如果finall语句块中也有return语句的话,那么直接从finally中返回了,这也是不建议在finally中return的原因。下面来看这几种情况。 情 ...
分类:
编程语言 时间:
2019-04-30 10:57:42
阅读次数:
139
斐波那契数列 F【0】=1,F【1】=1 -> 边界条件 F【N】=F【N-1】+F【N-2】 -> 转移方程 F【0】、F【1】……F【N】 ->状态 书写代码方法: 顺着推/逆着推/记忆化搜索 代码示例: 记忆化搜索: 常见动态规划种类: 数位/树形/状压/区间/其他 (插头/博弈论) 数位DP ...
分类:
其他好文 时间:
2019-04-30 10:55:58
阅读次数:
150
[TOC] 题目描述: 给定一个二叉树, "原地" 将它展开为链表。 示例: 给定二叉树 将其展开为: 解法: ...
分类:
其他好文 时间:
2019-04-30 10:53:38
阅读次数:
163
#include #include void exec(char cmd[]) { int f = 0, i, l; l = strlen(cmd); for (i = 0; i "); i = 0; while ((c = getchar()) != '\n') { if (c != ';')..... ...
分类:
其他好文 时间:
2019-04-29 21:19:31
阅读次数:
120
You are playing the following game with Joisino. Initially, you have a blank sheet of paper. Joisino announces a number. If that number is written on ...
分类:
其他好文 时间:
2019-04-29 20:56:37
阅读次数:
126
题目描述: 实现 strStr() 函数。 给定一个 haystack 字符串和一个 needle 字符串,在 haystack 字符串中找出 needle 字符串出现的第一个位置 (从0开始)。如果不存在,则返回 1。 ++示例 1:++ 输入: haystack = "hello", needl ...
分类:
其他好文 时间:
2019-04-29 20:52:16
阅读次数:
143