Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Example 2: Example ...
分类:
其他好文 时间:
2019-08-05 15:55:39
阅读次数:
82
看登录中间件的时候发现request.user返回的是SimpleOject对象,往下看翻到了LazyObject,看源码看了半天没看懂 网上搜了一堆资料了解下惰性加载实现是的什么功能,再回去看源码,大概知道了LazyObject实现的原理 Django的惰性加载,就是生成对象的时候先不实例化,等到 ...
分类:
其他好文 时间:
2019-08-04 16:50:25
阅读次数:
104
.Net Core CLR PE 文件启动方法,找到函数入口点,调用整个.Net 程式宿主。 使用方法:可以利用Visual Studio新建一个控制台应用程序,然后生成DLL,替换掉本程序DLL,新建C++ .CPP 文件 然后即可运行看到效果。 整个代码情况如下 包括 IMIAGE_CORE20 ...
分类:
Web程序 时间:
2019-08-01 16:05:54
阅读次数:
133
Description Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Input: "Hello" Outp ...
分类:
其他好文 时间:
2019-07-30 23:18:44
阅读次数:
104
1 /* 2 * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. 3 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license t... ...
分类:
编程语言 时间:
2019-07-29 14:32:43
阅读次数:
102
DES加密解密与AES加密解密 目录 [1]AES加密算法和DES加密算法的效率比较[2]AES和DES加密解密代码 随着开发时间的变长,当初认为比较难的东西,现在渐渐也就变的不那么难了!特别对于一些经常很少使用的类,时间长了之后渐渐就陌生了。所以在这里写一些日后可能会用到的加密与解密。 一.AES ...
分类:
其他好文 时间:
2019-07-27 13:09:08
阅读次数:
110
openresty(nginx+lua)中获取不到post数据,ngx.req.get_body_data返回nil This function returns nil if the request body has not been read, the request body has been ...
分类:
其他好文 时间:
2019-07-27 09:45:23
阅读次数:
434
A function is called pure function if it always returns the same result for same argument values and it has no side effects like modifying an argument ...
分类:
其他好文 时间:
2019-07-26 19:31:54
阅读次数:
109
将对图片的操作单独写一个内,代码如下: 1 public class DoPic 2 { 3 4 /// <summary> 5 /// 将图片转成二进制流 6 /// </summary> 7 /// <param name="path"></param> 8 /// <returns></ret ...
分类:
其他好文 时间:
2019-07-25 17:33:48
阅读次数:
78
//文件的对话框 OpenFileDialog ofd = new OpenFileDialog(); //文件过滤器 ofd.Filter = "文本文档(*.txt)|*.txt|*.*|*.*"; //是否点击确定按钮 if (ofd.ShowDialog() == DialogResult.... ...