一、泛型集合List<T>排序 经sort方法之后,采用了升序的方式进行排列的。 List<int> list = new List<int>() { 2, 4, 1, 3, 5, -2, 0, 10 }; Console.Write("排序前..."); foreach (var item in ...
分类:
编程语言 时间:
2020-11-19 12:32:15
阅读次数:
8
RabbitMQ : 1.优先级队列 交换机exchange揭秘 direct交换机 (直接交换器) fanout交换机 (广播是式交换器) topic交换机 (主题交换器) headers交换机 (消息体的header匹配) 消息持久化,消息扩容 1. Direct(直接交换器) Exchange ...
分类:
其他好文 时间:
2020-11-19 12:02:00
阅读次数:
4
#写古诗到文件中f = open("gushi.txt","w",encoding="utf-8") #不加encoding="utf-8"文件会出现乱码f.write(''' 静夜思 李白窗前明月光,疑是地上霜。举头望明月,低头思故乡。 ''')f.close()#复制:先读出文件中内容,再写入新 ...
分类:
编程语言 时间:
2020-11-18 13:24:20
阅读次数:
28
privateStringshareQrCode(Stringcontent){//获取底图Stringpath="/template/background.png";InputStreaminputStream=this.getClass().getResourceAsStream(path);QrConfigconfig=newQrConfig(118,118);//设置边
分类:
编程语言 时间:
2020-11-18 13:13:19
阅读次数:
13
1、HttpRequest对象的属性和方法 http请求:HttpRequest对象 def seetl(request): request.path # 请求页面全路径(不包括域名)request.get_full_path()请求路径中会加入相关参数(针对于GET请求) request.meth ...
分类:
其他好文 时间:
2020-11-18 12:41:46
阅读次数:
7
如何正确自定义的函数类,主要分为以下几种情况进行说明: 1. 在同一个文件夹下 对于同一文件夹下的py 文件来说,按理来说,其实可以直接正常import使用的,如下面的这种情况,dissim_get.py 文件 和lightfm_reco.py 文件,想要在lightfm_reco.py文件中引用d ...
分类:
编程语言 时间:
2020-11-18 12:31:28
阅读次数:
7
ELK--使用redis与logstash结合收集数据
分类:
其他好文 时间:
2020-11-18 12:15:15
阅读次数:
5
https://www.robots.ox.ac.uk/~vgg/research/smooth-ap/ https://github.com/Andrew-Brown1/Smooth_AP Smooth-AP: Smoothing the Path Towards Large-Scale Imag ...
分类:
其他好文 时间:
2020-11-17 13:00:10
阅读次数:
25
#1. 如何知道我对当前的文件有何权限 1. 你是谁 通过哪个用户登录的系统 2. 通过系统用户来对应文件的属主 属组 3. 通过属主属组的权限来判断我们对文件的权限 #2. 权限表示方法 表示方法1 R read 可读 cat less W write 可写 vim echo sed X exec ...
分类:
其他好文 时间:
2020-11-17 12:36:39
阅读次数:
6
##下载安装包 Git官网 ##安装 使用默认推荐设置就可以,有一步比较重要就是是否允许三方应用启动git ##设置环境变量 在path里面添加“Git安装目录\cmd” ##全局配置 git config --global user.name "用户名" git config --global u ...