static void YangHui(int n) { var arr = new int[n,n]; for (var i = 0; i < n; i++) { Console.Write("".PadLeft(n-i)); for (var j = 0; j <= i; j++) { if ( ...
分类:
编程语言 时间:
2021-01-29 11:51:19
阅读次数:
0
Code Structure 代码结构 命名保持规范,驼峰命名。 Boolean方法,起名要以"is" / "has"开头。 方法名称要是动词。 ...... Design Principles 设计原则 Apply the Single-Responsibility principle to in ...
分类:
其他好文 时间:
2021-01-28 12:20:52
阅读次数:
0
#include <iostream> //标准输入输出流 #include <pcl/io/pcd_io.h> //PCL的PCD格式文件的输入输出头文件 #include <pcl/point_types.h> //PCL对各种格式的点的支持头文件 #include <pcl/visualiza ...
分类:
其他好文 时间:
2021-01-28 11:55:50
阅读次数:
0
Cleaning the Phone Polycarp often uses his smartphone. He has already installed n applications on it. Application with number i takes up ai units of m ...
分类:
其他好文 时间:
2021-01-27 13:50:46
阅读次数:
0
1、js删除某个数组的特定对象 var arrs = [{key:'write',name:'write',value:'写'},{key:'read',name:'write',value:'读'}]; removeArray(arrs,'write'); function removeArray ...
分类:
编程语言 时间:
2021-01-27 13:37:17
阅读次数:
0
1 容器编排工具介绍 容器编排三套解决方案 kubernetes mesos+marathon machine+swarn+compose 1.1 Docker提供的容器编排方案 docker compose 单主机编排,只能面向一个docker主机进行编排 docker swarm 编排多主机do ...
分类:
其他好文 时间:
2021-01-27 13:24:27
阅读次数:
0
仅供自己学习 题目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a ...
分类:
其他好文 时间:
2021-01-27 13:14:49
阅读次数:
0
查看显卡驱动: nvidia-smi 报错: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is instal ...
分类:
其他好文 时间:
2021-01-27 12:52:58
阅读次数:
0
之前我们报导过 2020年被用烂大街的密码,500 多万个泄漏密码表明,共有近 3% 的人使用“123456”作为密码。而最近知名黑客网站 Have I Been Pwned 上一个密码“ji32k7au4a83”的使用次数引起了热烈讨论。 Have I Been Pwned 是一个可以查询用户的邮 ...
分类:
其他好文 时间:
2021-01-27 12:51:11
阅读次数:
0
确实,PHP没有类似于JS中的setInterval或者setTimeout这样的原生定时器相关的函数。但是我们可以通过其他方式来实现,比如使用declare。 先来看看是如何实现的,然后我们再好好学习一下declare表达式到底是个什么东西。 function do_tick($str = '') ...
分类:
Web程序 时间:
2021-01-26 12:27:44
阅读次数:
0