原因:kubernetes-admin命令没有同步过来 解决办法: 将主节点的配置 /etc/kubernetes/admin.conf 复制到本机,再重新声明环境变量 1、复制配置文件 scp root@主节点服务器地址:/etc/kubernetes/admin.conf /etc/kubern ...
分类:
其他好文 时间:
2020-11-17 12:19:02
阅读次数:
6
元素居中显示 块级元素居中显示 在body中的某个元素(box1) .box1 { margin: 0 auto; } 通过绝对定位在父容器里居中垂直显示 // 方法一: .box1 { position: absolute; top: 0; right: 0; bottom: 0; left: 0 ...
分类:
其他好文 时间:
2020-11-17 12:18:21
阅读次数:
6
Are you a Linux fan? Do you hate to do things the easy way? Are you a pro who loves to put his computer’s life on the line to experiment and customize ...
分类:
其他好文 时间:
2020-11-12 13:37:01
阅读次数:
8
实践题目名称: 找第k小的数 问题描述: 设计一个平均时间为O(n)的算法,在n(1<=n<=1000)个无序的整数中找出第k小的数。 提示:函数int partition(int a[],int left,int right)的功能是根据a[left]~a[right]中的某个元素x(如a[lef ...
分类:
其他好文 时间:
2020-11-11 16:26:03
阅读次数:
8
题目 代码 /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NU ...
分类:
其他好文 时间:
2020-11-10 10:47:27
阅读次数:
5
标题样式1 <p> <span style=" text-align: center; padding-bottom: 6px; padding-left: 20px; padding-right: 500px; color: #800080; padding-top: 6px; box-shado ...
分类:
Web程序 时间:
2020-11-08 17:16:18
阅读次数:
37
题目大意 一只青蛙现在在一个数轴上,它现在要从点 $1$ 跳到点 \(n\) ,它每次可以向右跳不超过 \(d\) 个单位。比如,它可以从点 \(x\) 跳到点 \(x+a\)($1\le a\le d$) 。 特别的,青蛙只能在有百合花的点上停留。保证点 $1$ 和点 \(n\) 之间有一些点有百 ...
分类:
其他好文 时间:
2020-11-08 17:15:30
阅读次数:
19
Leetcode 101 数据结构定义: /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x ...
分类:
其他好文 时间:
2020-11-07 16:16:53
阅读次数:
21
CSS代码: /* start */ .my-face { animation: my-face 5s infinite ease-in-out; display: inline-block; margin: 0 5px; } @-webkit-keyframes my-face { 2%, 24% ...
分类:
Web程序 时间:
2020-11-06 02:48:53
阅读次数:
45
#include <iostream> #include <vector> #include <stack> #include <queue> template <class T> typedef struct node { node* left; node* right; T val; std:: ...
分类:
其他好文 时间:
2020-11-06 01:25:12
阅读次数:
16