编程笔记
-
快速幂与快速乘
1 double quickMul(double x, long long N) { 2 double ans = 1.0; 3 double x_ = x; 4 // 在对 N 进行二进制拆分的同时计算答案 5 while (N > 0) { 6 if (N & 1) { 7 // 如果 N 二进制表示的最低位为 1,那…
-
Cloud computing
Cloud computing is the on-demand availability of computer system resources, especially data storage (cloud storage) and computing power, without direct active management by the user. The term is gene…
-
文本处理三剑客 - grep
一剑客 grep grep:Global search REgular expression and Print out the line 作用:文本搜索工具,根据用户指定的“模式”对目标文本逐行进行匹配检查;打印匹配到的行 模式:由正则表达式字符及文本字符所编写的过…
-
Linq SelectMany
Linq SelectMany SelectMany SelectMany查询语法 from 标识符1 in 可枚举的表达式1 from 标识符2 in 可枚举的表达式2 先看一个简单的例子 string[] arr = { "a b c", "x y z", "1 2 3" }; var q1 = from a in arr f…
-
python是什么?工作前景如何?怎么算有基础?爬数据违法嘛?。。
前言 随着python越来越火爆并在2021年10月,语言流行指数的编译器Tiobe将Python加冕为最受欢迎的编程语言,且置于Java、C和JavaScript之上,越来越多的人了解python. 但是,很多人都会疑惑: 它凭什么这么火爆…
-
并发开篇——带你从0到1建立并发知识体系的基石
并发开篇——带你从0到1建立并发知识体系的基石 前言 在本篇文章当中主要跟大家介绍并发的基础知识,从最基本的问题出发层层深入,帮助大家了解并发知识,并且打好并发的基础,为后面深入学习并发提供保证。本篇文章…
-
阻止手指缩放手机浏览器页面
# 首先在html的head头部加: ```<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">```听说iOS 10 开始,meta 设置在 Safar…
-
git的基础操作
git init #初始化git checkout -b mikemao #本地切换分支git add . #add所有git commit -m "plugin_code" #备注说明git branch -M mikemao #创建分支名git remote add origin http://-------- #clone 地址git push …
-
Vue路由
单页应用程序(SPA):通过路由系统把组件串联起来并且只有一个html页面d的程序。 多页面应用程序(MPA):整个应用程序中有多个html页面。 hash路由和history路由的区别 hash路由有#。背后是监听onhashchange事件实现…
-
SpringCloud: 服务配置中心Caused by: com.jcraft.jsch.JSchException: Auth fail
问题 配置 server: port: 3344 spring: application: name: cloud-config-center cloud: config: server: git: uri: git@gitee.com:CodeWaterStudy/spring-cloud-config.git #GitHub上面的git仓库名字 ####搜索目录…