目录 | 上一节 (1.1 Python) | 下一节 (1.3 数字) 1.2 第一个程序 本节讨论有关如何创建一个程序、运行解释器和调试的基础知识。 运行 Python Python 程序始终在解释器中运行。 解释器是一个“基于控制台”的应用程序,通常从命令行 shell 启动。 python3 ...
分类:
编程语言 时间:
2021-02-16 12:31:49
阅读次数:
0
1、call函数封装实现 // 手写call函数 function call(Fn,obj,...arg){ // 如果obj为null或者undefined,则指向window if(obj undefined || obj null){ // globalThis是ES11的新特性,指向全局 o ...
分类:
Web程序 时间:
2021-02-16 12:28:26
阅读次数:
0
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
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
在java.util.concurrent包中,有一个CountDownLatch的多线程同步器。参考javadoc的说明如下: “A synchronization aid that allows one or more threads to wait until a set of operati ...
分类:
编程语言 时间:
2021-02-16 11:49:28
阅读次数:
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
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
0x00 实验环境 攻击机:Win 10 靶机也可作为攻击机:Ubuntu18 (docker搭建的vulhub靶场) 0x01 影响版本 Apache ActiveMQ 5.13.0之前的5.x版本 0x02 漏洞复现 (1)实验环境:docker运行的vulhub漏洞环境首先,可直接访问到页面的 ...
分类:
其他好文 时间:
2021-02-15 11:48:02
阅读次数:
0
linux下配置邮件发送器postfix 开始之前必须先配置 dns域名解析 详见另一篇博客 安装postfix服务器并进行配置 可能postfix在系统安装过程中已经安装了此服务,可以使用下面的命令查询 rpm -q postfix 如果没有可以手动安装: yum install -y postf ...
分类:
系统相关 时间:
2021-02-10 13:17:31
阅读次数:
0