来源: "Redux入门教程 阮一峰" "Redux中文文档" React Redux是Redux对于React的封装 UI组件 React Redux将所有的组件分为两大类,UI组件和容器组件。 UI组件将不带有任何逻辑,无状态,所有的参数由this.props提供且不使用Redux的API 例如 ...
分类:
其他好文 时间:
2020-04-07 00:16:23
阅读次数:
69
<script> var str = 'hello world' // 获取字符串的长度 console.log(str.length) // 获取下标为1的字符 console.log(str.charAt(1)) // 获取下标为1的字符的对应的编码 console.log(str.charCo ...
分类:
Web程序 时间:
2020-04-06 22:12:25
阅读次数:
100
#!/usr/bin/env python # -*- coding:utf-8 -*- name = "郑建文" "郑建文" 是字符串 "郑"是字符 """ # ctrl + ? 快捷键整体注释 if "z正" in name: print('OK') else: print('Error') i ...
分类:
编程语言 时间:
2020-04-06 11:33:59
阅读次数:
59
1.在test suite右键点击New User Keyword 2.在test case中调用这个用户关键字@{pid} psu_id #表示注释 ...
分类:
其他好文 时间:
2020-04-06 11:24:29
阅读次数:
81
1. 求工资 大于 8888 , 年龄大于32 的人数 SELECT SUM(CASE WHEN SALARY > 8888 AND AGE >32 THEN 1 ELSE 0 END) FROM S_EMP; 2.如何快速求得各班最高得分 SELECT(CLASS_NO,MAX(SCORE)) G ...
分类:
其他好文 时间:
2020-04-06 09:23:25
阅读次数:
63
Problem : A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak element a ...
分类:
其他好文 时间:
2020-04-05 23:55:14
阅读次数:
129
import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int T = in.nextInt(); ...
分类:
其他好文 时间:
2020-04-05 13:23:27
阅读次数:
48
时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M 题目描述 求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。 思路: 利用 短路求值 的方法 C语言的逻辑操作符 && ...
分类:
其他好文 时间:
2020-04-05 11:16:58
阅读次数:
83
#include<stdio.h> int main(void) { int a; scanf("%d",&a); switch(a) { case 1: printf("a"); case 2: printf("b"); case 3: printf("c\n"); } return 0; } d ...
分类:
其他好文 时间:
2020-04-04 22:51:37
阅读次数:
112
以下为为求区间和,求区间最大值,最小值模板 题目以 敌兵布阵 HDU - 1166 为例子 1 #include <iostream> 2 #include <algorithm> 3 #include <string.h> 4 #include <cstdio> 5 #include <strin ...
分类:
其他好文 时间:
2020-04-04 22:43:45
阅读次数:
77