@model IEnumerable<mvctest.Models.SysUser> @{ ViewBag.Title = "Index"; } <h2>Index</h2> @using (Html.BeginForm()) { <p> @Html.ActionLink("Create New", ...
分类:
Web程序 时间:
2020-07-27 15:49:18
阅读次数:
79
楔子 我们平时在做测试的时候,经常会使用一些假数据,而Python中有一个包叫faker(不是打LOL的那个),专门用来生成假数据,并且生成的假数据非常逼真,下面我们就来看一下。 faker使用方法 基本使用 faker使用起来非常简单,我们看一下就知道了。 from faker import Fa ...
分类:
其他好文 时间:
2020-07-27 15:43:26
阅读次数:
97
面试题 https://juejin.im/post/5c8e409ee51d4534977bc557#heading-1 https://juejin.im/post/5d136700f265da1b7c6128db https://juejin.im/post/5a6547d0f265da3e2 ...
分类:
其他好文 时间:
2020-07-27 14:00:15
阅读次数:
149
ArrayList<String> arrayList = new ArrayList<>(2); arrayList.add("1"); // minCapacity = 1, elementDataLength = 2, 不需要增加capacity; arrayList.add("2"); // ...
分类:
编程语言 时间:
2020-07-27 13:53:43
阅读次数:
82
效果图:横向滚动和纵向滚动 scroll view使用方法文档,前面已经介绍查找文档方法,此处不再赘述 一、横向滚动 创建一个页面scroll-nav 然后,在.wxml文件中排版 <!--水平拖动新闻--> <scroll-view scroll-x class="menu"> <view cla ...
分类:
微信 时间:
2020-07-27 13:44:38
阅读次数:
98
如果只谈性能,显然是 for > forEach > map,为什么 for 的性能比较好?读一下 forEach 和 map 的规范定义就知道了。map 会返回一个等长数组,forEach 不会,所以 forEach 大于 map。 具体的性能分析可以看https://juejin.im/post ...
分类:
其他好文 时间:
2020-07-27 13:38:22
阅读次数:
63
dnf包管理器克服了yum包管理器的一些瓶颈,提升了包括用户体验,内存占用,依赖分析,运行速度等。CentOS7使用dnf,下载并安装下面包:wgethttp://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf0.6.4-2.sdl7.noarch.rpmwgethttp://springdale.math.ias.
分类:
其他好文 时间:
2020-07-27 09:56:55
阅读次数:
106
国内关于Data Vault的信息很少,所以决定写点什么,纯粹都是自己在这个行业10多年的摸爬滚打。不过为了效率,尽量做到简短,直接上干货。对于各个细节大家有不同的理解欢迎来讨论。 ...
分类:
其他好文 时间:
2020-07-27 09:51:29
阅读次数:
95
字节类型 字节类型(bytes类型):将unicode类型通过其他编码方式进行编码后的数据类型成为字节类型 #意打开文件的方式不同 f = open('x,tet',mode="wb") data = 'yang'.encode('utf-8') print(data,type(data)) #此处 ...
分类:
编程语言 时间:
2020-07-27 09:48:56
阅读次数:
75
先序遍历:根-->左-->右的形式 public static void preOrderTraveralWithStsck(Node node){ Stack<Node> stack = new Stack(); //当节点的左右孩子全为空并且,栈空表示遍历完毕 while (node != nu ...
分类:
编程语言 时间:
2020-07-27 09:42:07
阅读次数:
81