首页 > 新文章
  • Python简说(十五)MD5加密 is a project mainly written in , based on the .def my_md5(s): news = str(s).encode() m = hashlib.md5(news) return m.hexdigest() 转载于:https://www.cnblogs.com/wangtingting920416/p/10099896.html...

  • CQOI2015 任务查询系统 is a project mainly written in , based on the .传送门 又是一句经常见到的话……做完这题对主席树的理解会更好一些…… 这道题把普通的主席树单点修改区间查询改成了区间修改单点查询。这个的话我们可以改成差分解决……把一个操作改成两个,然后把所有操作按照时间进行排序。注意这里修改细节很多,因为可能在一个时间上有很多操作,所以我们要先继承上一个时间点的根的情况,然后对于本时间点的操...

  • 01 python爬虫 is a project mainly written in , based on the .--- 转载于:https://www.cnblogs.com/haima/p/10107708.html...

  • Spring boot jpa 整合 is a project mainly written in , based on the .1,Eclipse JPA Tool配置 https://www.cnblogs.com/wgslucky/p/10109300.html   2,项目地址   https://gitee.com/wgslucky/springboot-jpa 转载于:https://www.cnblogs.com/wgslucky/p/10...

  • Nginx+Apache Yii2.0 配置方案 is a project mainly written in , based on the .  最近用Yii2.0框架做了个小项目,虽然项目本身业务逻辑不复杂,但是由于本身业务逻辑的特殊性,在上午9点到12点之间系统访问量会突然上升(浏览量和用户上传文件量)。导致系统单纯的部署在Apache下,支撑不了这么多的并发数;单独部署Nginx又由于用户频繁的提交数据,出现大量的502错误。然后又由于各方面的原因,就想通过Nginx...

  • 中国现代化进程专题讲座——有感 is a project mainly written in , based on the .最近有上段治文老师的中国现代化进程这门课,感觉受益颇多。 从国外到国内,从古代到如今,讲论点、论据,评论历史人物、历史事件,讲的很宏大,很深刻。我并没有特意捧他,而是深深被其思想的深刻、言论的自由所折服。 很多时候,我们能做什么事情,是时代所决定的,不得不承认个人在时代之中的渺小,不得不承认世界是耦合的,任何一个人都有成为历史人物的...

  • 2018年12月14日 函数 总结 is a project mainly written in , based on the .  map() 处理序列中每个元素,得到迭代器,该迭代器  元素个数和位置与原来一致 filter() 遍历序列中的每个元素,判断每个元素得到布尔值,如果是true则留下来 people=[{'name':"abc","age":100},{"name":"def","age":80},{'name':'sxj',"age":30...

  • 如何解决代码中if…else 过多的问题 is a project mainly written in , based on the .前言 if...else 是所有高级编程语言都有的必备功能。但现实中的代码往往存在着过多的 if...else。虽然 if...else 是必须的,但滥用 if...else 会对代码的可读性、可维护性造成很大伤害,进而危害到整个软件系统。现在软件开发领域出现了很多新技术、新概念,但 if...else 这种基本的程序形式并没有...

  • Little w and Soda(思维题) is a project mainly written in , based on the .链接:https://ac.nowcoder.com/acm/contest/297/A 来源:牛客网   时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述   不知道你听没听说过这样一个脑筋急转弯。 2元可以买一瓶汽水(玻璃...

  • 关于eclipse的注释和反注释的快捷键 is a project mainly written in , based on the .使用eclipse那么久了额,对注释和反注释的快捷键一直很模糊,现在记下来,方便查看。 注释和反注释有两种方式。如对下面这段代码片段(①)进行注释: private String value; private String count; public void setValue(String value) { this.value...

  • Expect--自动批量分发公钥脚本 is a project mainly written in , based on the .1.在使用之前,先安装epel源,yum install expect -y2.写分发脚本,后缀为exp #!/usr/bin/expect set host_ip [lindex $argv 0] spawn ssh-copy-id -i /root/.ssh/id_rsa.pub $host_ip expect {-timeou...

  • Springboot redis配置 is a project mainly written in , based on the .1、引入maven依赖 org.springframework.bootspring-boot-starter-data-redis   2、redis连接配置 spring:redis:h...

  • Unity 2D物体移动 is a project mainly written in , based on the .一,设置    二,脚本   1,PlayerController using System.Collections; using System.Collections.Generic; using UnityEngine;public class PlayerController : MonoBehaviour {privat...

  • Lua C# is a project mainly written in , based on the .https://github.com/topameng/tolua 转载于:https://www.cnblogs.com/lilei9110/p/10130136.html...

  • 编程上标和下标使用方法 is a project mainly written in , based on the .  1.问题:写代码要求显示平方、立方、化学符号等等完全写不出来,Word写出来复制出来也不管用   2.办法:Unicode下标和上标    3.举例:string.Format("{0} kmxB2",1000),单位是平方千米,2 的符号在上面   4.感悟:没事儿上上维基百科挺好的   转载于:https://www....

  • Ucos-iii串口用信号量及环形队列中断发送,用内建消息队列中断接收 is a project mainly written in , based on the .串口发送部分代码: //通过信号量的方法发送数据 void usart1SendData(CPU_INT08U ch) {OS_ERR err;CPU_INT08U isTheFirstCh;OSSemPend(&Usart1Sem, 0, OS_OPT_PEND_BLOCKING, NULL, &err);//阻塞型等待串口发送资...

  • 【Visual Studio 扩展工具】如何在ComponentOneFlexGrid树中显示RadioButton is a project mainly written in , based on the .概述 在ComponentOne Enterprise .NET控件集中,FlexGrid表格控件是用户使用频率最高的控件之一。它是一个功能强大的数据管理工具,轻盈且灵动,以分层的形式展示数据(数据呈现更加直观)。 FlexGrid 简介 FlexGrid 是业界推崇的 .NET 数据表格,集成于 ComponentOne Ente...

  • Rest-framework之解析器 is a project mainly written in , based on the .rest-framework之解析器 本文目录 一 解析器的作用二 全局使用解析器三 局部使用解析器四 源码分析 回到目录 一 解析器的作用 根据请求头 content-type 选择对应的解析器对请求体内容进行处理。 有application/json,x-www-form-urlencoded,form-data等格式 回...

  • C#总结最近的几项重要代码 is a project mainly written in , based on the .java的代码就不说了,毕竟不是我的主业。 1.c#数据库连接池Hikari.    (1)动态加载各类数据库驱动   (2)支持简单配置文件 (3)支持按照名称多数据库调用 (4)使用简洁  单数据库使用: HikariConfig hikariConfig = new HikariConfig(); hikariConfig.L...

  • Linux history记录格式修改 is a project mainly written in , based on the .#保存一万条命令记录 sed -i 's/^HISTSIZE=1000/HISTSIZE=10000/g' /etc/profile#在/etc/profile的文件尾部添加如下行数配置信息 ######jiagu history xianshi######### USER_IP=`who -u am i 2>/dev/null |...