总经理说:不管将来干什么,一定要夯实基础,一通百通,融会贯通。我觉得现在不管干着什么,基础也要学而时习之。//冒泡排序private static void sort(int[] arr) { for (int i = 0; i < arr.length-1; i++) {//5、因为两个元素比较一 ...
分类:
编程语言 时间:
2021-04-01 13:43:24
阅读次数:
0
class Solution(object): def intersect(self, nums1, nums2): if len(nums1) > len(nums2): return self.intersect(nums2, nums1) m = collections.Counter() f ...
分类:
编程语言 时间:
2021-04-01 13:42:22
阅读次数:
0
package com.demo.utils;import java.security.MessageDigest;/** * MD5加密类 * @author zys */public class MD5Utils { public final static String MD5(String s ...
分类:
其他好文 时间:
2021-04-01 13:36:02
阅读次数:
0
public static void decodeYUV420SPrgb565(int[] rgb, byte[] yuv420sp, int width, int height) { final int frameSize = width * height; for (int j = 0, yp ...
分类:
其他好文 时间:
2021-04-01 13:29:11
阅读次数:
0
类型转换 由于java是强类型语言,所以要进行有些运算的时候,需要用到类型转换 低 >高 byte,short,char->int->long->float->double 运算中,不同类型的数据先转化为同一类型,然后进行运算 public class A{ public static void m ...
分类:
编程语言 时间:
2021-04-01 13:21:08
阅读次数:
0
首先感谢这位大哥帖子:https://www.hangge.com/blog/cache/detail_2461.html 解决如下: 在application.properties加: spring.web.resources.static-locations=classpath:/META-IN ...
分类:
编程语言 时间:
2021-04-01 13:16:56
阅读次数:
0
###案例1 java byte[]与十六进制字符串相互转换 import java.util.Arrays; public class ccc { public static void main(String[] args) { int[] array ={-6, 1, 18, 114, 54, ...
分类:
编程语言 时间:
2021-04-01 12:57:31
阅读次数:
0
使用云服务器搭建 Web 运行环境,尤其是搭建常见的 LNMPR(Linux+Nginx+MySQL+PHP+Redis) 环境,对于开发人员是必备的职场基本技能之一。在这里,借着搭建我的“魚立说”个人网站的机会,整理了从零搭建 LNMPR 环境的详细过程,期间遇到的问题也一一进行了记录。 ...
分类:
其他好文 时间:
2021-04-01 12:54:58
阅读次数:
0
CS DES任意长度密钥加密 private static string Encrypt2(string str, string sKey) { string s = ""; using (System.Security.Cryptography.DESCryptoServiceProvider d ...
分类:
其他好文 时间:
2021-04-01 12:53:38
阅读次数:
0
创建用户模块子应用 1. 创建用户模块子应用 1.准备apps包,用于管理所有应用 2.在apps包下创建应用users $ cd ~/projects/meiduo_project/meiduo_mall/meiduo_mall/apps $ python ../../manage.py star ...
分类:
其他好文 时间:
2021-03-31 12:28:29
阅读次数:
0