1. 10秒钟测试ip段所有IP的连通性 (base) [root@wlt-overseas-middleware-master ~]# cat su-asyncio-re-cancel.py import asyncio import time import re # call shell cmd ...
分类:
编程语言 时间:
2021-02-16 12:27:26
阅读次数:
0
Getopts Let’s say you want to allow a user to pass a -v flag to turn on verbose logging in a script. Manually parsing out options passed to a script i ...
分类:
其他好文 时间:
2021-02-16 12:03:18
阅读次数:
0
1.断言 标准库 testing "github.com/stretchr/testify/assert" func TestDemo(t *testing.T) { assert.Nil(t, nil) assert.NotNil(t, struct{}{}) assert.Equal(t, 5, ...
分类:
编程语言 时间:
2021-02-16 12:02:30
阅读次数:
0
正题 题目链接:https://www.luogu.com.cn/problem/AT4995 题目大意 $n$个点的一棵树,上面有一些棋子,每次可以选择两个棋子移动到他们之间的路径上相邻的点上,求最少多少步能移动到一个点上。 \(n\in[1,2000]\) 解题思路 如果固定最终节点的话,这个节 ...
分类:
其他好文 时间:
2021-02-16 12:00:16
阅读次数:
0
import requests import re import os import json import time as t class QQmusic(): """代码仅供学习""" def __init__(self): """初始化""" self.headers = { 'Accept- ...
分类:
其他好文 时间:
2021-02-15 12:44:00
阅读次数:
0
{ path: '/teacher', component: Layout, redirect: '/teacher/table', //重定向跳转 name: '讲师管理', meta: { title: '讲师管理', icon: 'example' }, //title页面标题,icon头像 ...
分类:
其他好文 时间:
2021-02-15 12:11:54
阅读次数:
0
import threading import time def test1(): print(1+5) def test2(): print(5+8) def test3(): print(5 + 8) def test4(): print(5 + 8) def test5(): print(5 ...
分类:
编程语言 时间:
2021-02-15 12:03:29
阅读次数:
0
我遇到的tomcat乱码可以分几种: 测试代码: @RestController public class TestController { @RequestMapping("/a1") public String test(){ System.out.println("TestController ...
分类:
编程语言 时间:
2021-02-15 11:51:13
阅读次数:
0
java基本结构 顺序结构 一句一句往下执行,顺序结构是最简单的语法结构。 1 ? 2 public class Hello{ 3 public static void main(String []args) 4 { 5 System.out.println("Hello1"); 6 System. ...
分类:
编程语言 时间:
2021-02-15 11:49:33
阅读次数:
0
LeafTest.java package com.atguigu.java3; //总结:由父及子,静态先行 class Root{ static{ System.out.println("Root的静态初始化块"); } { System.out.println("Root的普通初始化块"); ...
分类:
其他好文 时间:
2021-02-10 13:16:03
阅读次数:
0