编程的方法论: 1.面向过程 2.函数式:用数学意义的函数+编程语言定义的函数 3.面向对象 函数式编程的特点: 1.不可变数据,在函数内不使用global等关键字,避免修改数据。 2.第一轮对象,函数即变量,就是少定义或不定义变量名,直接把函数作为变量来传值,传参数。如: #其它编程方法 def ...
分类:
编程语言 时间:
2020-11-27 11:29:01
阅读次数:
7
有时候git明明已经配置了用户名和密码,但在项目中,有时候pull和push的时候却每次都要提示输入用户名和密码,很浪费时间。 解决办法 在git bash中输入: git config --global credential.helper store 执行完上面的git命令后,在命令行正常执行pu ...
分类:
其他好文 时间:
2020-11-25 12:33:41
阅读次数:
2
问题背景: 最近测试同学给我提了个bug,字段不能置空,我查看了下项目配置发现是字段级别被设置为NOT_EMPTY导致的。 mybatis-plus FieldStrategy 有三种策略: 1.IGNORED:0 忽略 2.NOT_NULL:1 非 NULL,默认策略 3.NOT_EMPTY:2 ...
分类:
其他好文 时间:
2020-11-24 12:05:13
阅读次数:
32
1.安装centos 7 2.使用root登陆系统,更新系统及所有软件按到最新 yum update -y && reboot 3.安装vim、samba yum install vim samba -y 4.配置文件在/etc/samba/smb.conf [global] workgroup = ...
分类:
其他好文 时间:
2020-11-23 12:12:07
阅读次数:
7
1、haproxy配置多个负载 global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #daemon debug user haproxy group haproxy maxconn 4096 defaults log global mode ...
分类:
其他好文 时间:
2020-11-23 12:06:36
阅读次数:
5
使用Grafana和Prometheus对Linux服务器性能进行监控,主要通过node_exporter进行监控,指标如 CPU、内存、磁盘等。Prometheus通过HTTP协议从远程的机器收集数据并存储Prometheus本地时序数据库。 一.监测服务器安装node_exporter linu ...
分类:
系统相关 时间:
2020-11-23 12:01:53
阅读次数:
10
Open C UF_PS_ask_current_highest_tagUF_PS_ask_current_partitionUF_PS_ask_entity_partitionUF_PS_ask_journal_dataUF_PS_ask_kernel_versionUF_PS_ask_objec ...
分类:
其他好文 时间:
2020-11-19 12:26:14
阅读次数:
5
欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java、Docker、Kubernetes、DevOPS等; 关于Flink SQL Client Flink Table & SQL的API实现了通过SQ ...
分类:
数据库 时间:
2020-11-18 13:07:58
阅读次数:
15
##下载安装包 Git官网 ##安装 使用默认推荐设置就可以,有一步比较重要就是是否允许三方应用启动git ##设置环境变量 在path里面添加“Git安装目录\cmd” ##全局配置 git config --global user.name "用户名" git config --global u ...
#1.临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package #2.永久使用 1 pip install pip -U 2 pip config set global.index-url https://py ...
分类:
其他好文 时间:
2020-11-16 13:42:27
阅读次数:
6