显示2016年2月份的日历print(calendar.month(2016,2)) 2016年为闰年In calendar.isleap(2016)OUt True 当前时间戳In time.time()OUt 145526477.661747 ...
分类:
其他好文 时间:
2021-02-19 13:32:28
阅读次数:
0
由于今天实在是太自闭了就前来写场已经 AK 的 div.2 的题解了 这场比赛是我的 div.2 首 AK 哦 A 先特判 \(b=1\),强制将 \(b+1\) 否则容易发现答案最大为 \(\log_ab\),所以直接枚举 \(b\) 加了多少次,枚举到 \(30\) 就行了。 B 考虑一个数组 ...
分类:
其他好文 时间:
2021-02-18 13:39:20
阅读次数:
0
组合求和( Combination Sum) 1. 题目描述 Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of ...
分类:
编程语言 时间:
2021-02-18 13:37:18
阅读次数:
0
#KUBERNETES 基础(1) ##1. Kubernetes 初体验 ###1.1 简介 Kubernetes 是 Google 团队发起的?个开源项?,它的?标是管理跨多个主机的容器,?于?动部 署、扩展和管理容器化的应?程序,主要实现语?为 Go 语?。Kubernetes 的组件和架构还 ...
分类:
Web程序 时间:
2021-02-18 13:02:14
阅读次数:
0
Unsafe Rust So far, you can see that Rust has a strict memory safety guarantee at compile time. However, sometimes this safety guarantee can be annoyi ...
分类:
其他好文 时间:
2021-02-17 14:12:34
阅读次数:
0
执行上下文 执行上下文是评估和执行 JavaScript 代码的环境的抽象概念 执行栈 执行栈,也就是在其它编程语言中所说的“调用栈”,是一种拥有 LIFO(后进先出)数据结构的栈,被用来存储代码运行时创建的所有执行上下文。 当 JavaScript 引擎第一次遇到你的脚本时,它会创建一个全局的执行 ...
分类:
编程语言 时间:
2021-02-17 14:09:18
阅读次数:
0
2.EDA/探索性数据分析 2.1 周一到周日每天购买情况 # 导入相关包 %matplotlib inline # 绘图包 import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as p ...
分类:
其他好文 时间:
2021-02-17 14:01:56
阅读次数:
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