环境:MySQL5.7版本 先生成一组测试数据 public static int randAge(){ return new Random().nextInt(100); } public static char randScore(){ int i = new Random().nextInt( ...
分类:
数据库 时间:
2020-11-07 17:46:38
阅读次数:
46
""" -*- coding:utf-8 -*- @Time :2020/11/4 19:02 @Author : @File :jar_encryption_util.py @Version:1.0 """ class JarEncryptionUtil: @staticmethod def st ...
分类:
编程语言 时间:
2020-11-07 17:32:29
阅读次数:
30
被选中的tab变大 TabBar( tabs: _tab.map((f) { return Text( f, style: TextStyle(color: Colors.white), // 设置tab文字的样式,优先级最高 ); }).toList(), controller: _control ...
分类:
其他好文 时间:
2020-11-07 17:26:26
阅读次数:
41
前言代码中如果if-else比较多,阅读起来比较困难,维护起来也比较困难,很容易出bug,接下来,本文将介绍优化if-else代码的八种方案。优化方案一:提前return,去除不必要的else如果if-else代码块包含return语句,可以考虑通过提前return,把多余else干掉,使代码更加优雅。优化前:if(condition){//doSomething}else{return;}优化后
分类:
其他好文 时间:
2020-11-07 17:06:07
阅读次数:
23
<dependency> <groupId>com.alibaba.csp</groupId> <artifactId>sentinel-web-servlet</artifactId> <version>1.8.0</version> </dependency> @Bean public Filt ...
分类:
其他好文 时间:
2020-11-07 17:04:49
阅读次数:
25
<script> (function(window,document,undefined){ var hearts = []; window.requestAnimationFrame = (function(){ return window.requestAnimationFrame || win ...
分类:
编程语言 时间:
2020-11-07 16:56:09
阅读次数:
35
引用:nuget名称:gz.plancore 编译后需要把packages\GZ.PlanCore.1.0.101\tools目录中的文件移动到Debug文件夹 插件代码和GZ.Plan.Tools.exe在同一级 事件代码: public class P_ReturnOrder : GZ.Plan ...
分类:
其他好文 时间:
2020-11-07 16:55:50
阅读次数:
26
bool recursion(int* target, int srcSize, int* src, int num, int pst){ int cnt=0,i; int oodpst=0,evenpst=srcSize/2; int arr[5001]={0}; if (srcSize<=num ...
分类:
其他好文 时间:
2020-11-07 16:40:47
阅读次数:
16
int factorial(int n){ int ret=1; while(n) ret*=n--; return ret; } int paintingPlan(int n, int k){ if (k==0 || k==n*n) return 1; int blank=n*n-k,ret=0, ...
分类:
其他好文 时间:
2020-11-07 16:12:37
阅读次数:
18
# # @lc app=leetcode.cn id=70 lang=python3 # # [70] 爬楼梯 # # @lc code=start class Solution: def climbStairs(self, n: int) -> int: if n == 1: return 1 i ...
分类:
其他好文 时间:
2020-11-07 16:09:23
阅读次数:
19