Go语言基础之time包 时间和日期是我们编程中经常会用到的,本文主要介绍了Go语言内置的time包的基本用法。 time包 time包提供了时间的显示和测量用的函数。日历的计算采用的是公历。 时间类型 time.Time类型表示时间。我们可以通过time.Now()函数获取当前的时间对象,然后获取 ...
分类:
编程语言 时间:
2021-02-10 13:08:17
阅读次数:
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
引子: 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
永久解决IDEA 连接 mysql时区问题` 找到mysql的安装路径下的my.ini文件 加入以下代码 [mysqld] default-time_zone='+8:00' 关闭然后保存 打开然后以管理员的身份运行命令提示符重启mysql服务,输入以下的命令 关闭mysql服务: net stop ...
分类:
数据库 时间:
2021-02-08 12:21:40
阅读次数:
0
爬虫最近搞不懂动了 为了毕设,开始弄一下树莓派 为了图方便,先摸了摸scratch图形编程,虽然自己也会C++和Python。 有图形编程在前,后面的就很好理解了,先开第一章,努力写好树莓派和传感器的日志(不敢说教程,太菜了)。 嵌入式第一条!针脚定义要知道 针脚定义图: C++用得wiringPi ...
分类:
编程语言 时间:
2021-02-08 12:17:46
阅读次数:
0
奇异值分解 SVD分解 \(若A \in \mathbb{R}^{m\times n},rank(A) = r,则有SVD分解\) : \[ A = UDV \] \(SVD分解有三种形式\): \(full \ SVD:\) $ U,V是方阵,且为酉阵,U \in \mathbb{m\times ...
分类:
其他好文 时间:
2021-02-08 12:09:06
阅读次数:
0