Go语言基础之time包 时间和日期是我们编程中经常会用到的,本文主要介绍了Go语言内置的time包的基本用法。 time包 time包提供了时间的显示和测量用的函数。日历的计算采用的是公历。 时间类型 time.Time类型表示时间。我们可以通过time.Now()函数获取当前的时间对象,然后获取 ...
分类:
编程语言 时间:
2021-02-10 13:08:17
阅读次数:
0
打开CMD的方式 开始+系统+命令提示符 Win+R +CMD打开控制台 任意文件夹 按住shift+右键,打开powershell窗口 文件地址栏前面加上cmd路径 常用的DOS命令 #盘符切换 #查看当前目录下的所有文件 dir #切换目录 cd /d (change directory) cd ...
分类:
其他好文 时间:
2021-02-10 13:06:21
阅读次数:
0
聚合函数 函数返回值型 函数(参数) 描述 BIGINT count(*), count(expr), count(DISTINCT expr[, expr...]) 1.统计总行数,包括含有 NULL 值的行 2.count(expr) 统计提 供非 NULL 的 expr 表达式 值的行数 3. ...
分类:
其他好文 时间:
2021-02-10 13:04:58
阅读次数:
0
This time, you are supposed to find $A+B$ where $A$ and $B$ are two polynomials. Input Specification: Each input file contains one test case. Each cas ...
分类:
其他好文 时间:
2021-02-10 13:03:20
阅读次数:
0
Problem Description Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer poin ...
分类:
其他好文 时间:
2021-02-10 13:02:09
阅读次数:
0
### go context理解 #### context包 总结起来就一句话:一个接口,四个实现,六个方法 (1.)一个接口 type Context interface { Deadline() (deadline time.Time, ok bool) Done() ←chan struct ...
分类:
其他好文 时间:
2021-02-10 12:51:22
阅读次数:
0
//销毁僵尸进程2#include <stdio.h>#include <stdlib.h>#include <sys/wait.h> int main(int argc, char *argv[]){ int status; pid_t pid=fork(); if (pid==0) { slee ...
分类:
系统相关 时间:
2021-02-09 12:31:34
阅读次数:
0
引子: flask中的request 在单进程单线程中没有问题,但是性能肯定是下降的,如果强制开启多线程,会导致线程不安全。但是threading.local() 方法支持多线程,但是不支持多协程 代码: # -*- coding: utf-8 -*- """ threadlocal 上下问管理 源 ...
分类:
其他好文 时间:
2021-02-09 11:46:54
阅读次数:
0
# coding:utf-8 """ Name : 剑指offer58.py Author : qlb Contect : 17801044486@163.com Time : 2021/2/7 14:14 Desc: 左旋字符串 """ class Solution: def reverseLef ...
分类:
其他好文 时间:
2021-02-08 12:34:26
阅读次数:
0
恢复内容开始 # coding:utf-8 """ Name : LeetCode28.py Author : qlb Contect : 17801044486@163.com Time : 2021/2/7 17:17 Desc:实现 strStr() """ class Solution: d ...
分类:
其他好文 时间:
2021-02-08 12:33:47
阅读次数:
0