<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>CSS</title> <style> p{ color: red; font-size: 30px; line-height: 200px; text-align ...
分类:
Web程序 时间:
2020-10-21 20:40:08
阅读次数:
31
1 #include<bits/stdc++.h> 2 void quickSort(int a[],int first,int end) 3 { 4 if(first==end) return; 5 int i = first,j = end,temp; 6 while(i<j){ 7 while ...
分类:
编程语言 时间:
2020-10-20 16:26:37
阅读次数:
21
import numpy as np import cv2 as cv # Create a black image img = np.zeros((512,512,3), np.uint8) # Draw a diagonal blue line with thickness of 5 px cv ...
分类:
编程语言 时间:
2020-10-20 16:26:11
阅读次数:
32
1、case命令选择执行 [root@linuxprobe test]# ls test.sh [root@linuxprobe test]# cat test.sh ## 查看脚本 #!/bin/bash echo "This is a test!" echo "you can choose 0- ...
分类:
系统相关 时间:
2020-10-19 22:36:33
阅读次数:
27
import random #把random模块调用出来 age = random.randint(10,25)#用rand.randint制造一个随机数表 count = 0 while count < 3:#共有三次机会 n = int(input('Guess the age:'))#输入用户 ...
分类:
编程语言 时间:
2020-10-19 22:35:39
阅读次数:
23
#include <iostream> #include <cstring> using namespace std; char a[260]; int main() { int len,k; cin>>a; cin>>k; len=strlen(a); while(k--) { for(int i ...
分类:
其他好文 时间:
2020-10-19 22:33:48
阅读次数:
21
循环结构 循环结构: 重复执行特定语句 循环结构分类 for循环 while循环 3.do...while循环 1.for循环 1.1 语法: for(初始条件语句;终止条件语句;迭代条件语句){ 循环执行体 } 1.2 执行过程 (1) 初始化条件表达式 (2)判断循环表达式 (3)成立则执行条件 ...
分类:
编程语言 时间:
2020-10-19 22:33:00
阅读次数:
18
当master服务器宕机,提升一个slave成为新的master
分类:
其他好文 时间:
2020-10-19 22:22:37
阅读次数:
21
先序遍历 Stack<TreeNode> stk = new Stack<>(); stk.push(root); while (!stk.empty()) { TreeNode cur = stk.pop(); if (cur != null) { // visit cur stk.push(cu ...
分类:
其他好文 时间:
2020-10-19 22:18:07
阅读次数:
24