思路: 小程序登录获取code,将code传到后台; 后台用code得到微信用户id,即openid,将openid存储在用户表中,完成绑定 登录时,再次获取code并传给后台,得到openid,若用户表中存在,便可直接登录 以下仅是代码片段,更多代码在Github back_end/applica ...
分类:
微信 时间:
2020-07-25 09:59:11
阅读次数:
210
Java里面的泛型在实际开发中运用的很多,比如分页插件,List接口的实现类ArrayList。 public class ArrayList<E> extends AbstractList<E> implements List<E> public static <T> void main(Stri ...
分类:
编程语言 时间:
2020-07-24 22:10:37
阅读次数:
73
Dijkstra's algorithm is one of the very famous greedy algorithms. It is used for solving the single source shortest path problem which gives the short ...
分类:
其他好文 时间:
2020-07-24 21:53:35
阅读次数:
107
开发模式: 1、模式一(Model One):JSP(只使用JSP进行开发) Servlet:本质是一段Java程序,适合处理业务逻辑,但是Servlet不适合输出一个html网页(因为在Servlet中输出网页,得通过response获取流,通过out.write一行一行将html标签等内容输出到 ...
分类:
编程语言 时间:
2020-07-24 21:51:49
阅读次数:
73
>>>dict() # 创建空字典 {} >>> dict(a='a', b='b', t='t') # 传入关键字 {'a': 'a', 'b': 'b', 't': 't'} >>> dict(zip(['one', 'two', 'three'], [1, 2, 3])) # 映射函数方式来构 ...
分类:
其他好文 时间:
2020-07-24 19:10:00
阅读次数:
67
The Code of Pruning Filters For Efficient ConvNets 1. 代码参考 https://github.com/tyui592/Pruning_filters_for_efficient_convnets 其中主要是用VGG来进行在CIFAR100上的剪枝 ...
分类:
Web程序 时间:
2020-07-24 19:03:27
阅读次数:
108
```cpp /*革启博客,革启网,袁欢,袁欢的博客,袁欢博客 版本:vs2019社区版 功能;C语言汉诺塔问题 */ #include<stdio.h> void move(char x, char y); void move(char x, char y) { printf("%c-->%c\n ...
分类:
编程语言 时间:
2020-07-24 16:45:47
阅读次数:
92
1 ThreadLocal? This class provides thread-local variables. These variables differ from their normal counterparts in that each thread that accesses one ...
分类:
其他好文 时间:
2020-07-24 16:00:59
阅读次数:
76
1 from time import sleep 2 import random,pyperclip,os 3 import pyautogui 4 from openpyxl import load_workbook 5 import datetime 6 import tkinter as tk ...
分类:
微信 时间:
2020-07-24 15:58:58
阅读次数:
135
1010.Lead of Wisdom 暴搜。。。我去除了比某一同类装备4个属性都低的装备 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register i ...
分类:
其他好文 时间:
2020-07-23 23:22:33
阅读次数:
184