Skip to content

四号程序员

Keep It Simple and Stupid

  • Home
  • 读过的书
  • 从0到1实战微服务架构(第2版)

Matplotlib的内置colormap

Leave a reply

即cmap参数的字符串值

https://matplotlib.org/stable/tutorials/colors/colormaps.html[......]

继续阅读

This entry was posted in 机器学习 and tagged cmap, colormap, matplotlib on 2023-03-02 by coder4.

Go解析字符串到时间

Leave a reply

time.Parse(layout, "2023-03-04")
其中layout用类似"2006-01-02 15:04:05"这样的字符串做模板,这个对开发者太友好了,再也不用yyyy记忆了,一些内置的如下:
const (
ANSIC = "Mon Jan _2 15:04:05 2006"
UnixDate = "Mon Jan _2 15:04:05 MST 2006"
RubyDate = "Mon Jan 02 15:04:[......]

继续阅读

This entry was posted in Go and tagged go, Parse, time, 字符串, 解析 on 2023-03-01 by coder4.

Go计算两个时间差了几个工作日

Leave a reply

最土的办法,就是模拟:
func calc_work_day(begin, end time.Time) int {
var workDay = 0
var curTime = begin
for {
if curTime.After(end) {
break
}
if curTime.Weekday() == time.Saturday || curTime.Weekday() == time.Sunday {
//[......]

继续阅读

This entry was posted in Go and tagged go, 工作日, 间隔 on 2023-03-01 by coder4.

Go执行网络请求

Leave a reply

1 发送get请求
func http_get(url string) string {
resp, err := http.Get(url)
if err != nil {
fmt.Println(err)
return ""
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
// resp.StatusCode
return string(body)[......]

继续阅读

This entry was posted in Go and tagged go, HTTP, 请求 on 2023-03-01 by coder4.

[转]深度对比 Delta、Iceberg 和 Hudi 三大开源数据湖方案

Leave a reply

https://www.infoq.cn/article/fjebconxd2sz9wloykfo[......]

继续阅读

This entry was posted in 大数据技术 and tagged 数据湖 on 2023-02-24 by coder4.

Post navigation

← Older posts
Newer posts →

Categories

  • Android
  • C && C++
  • Go
  • iOS
  • Java
  • Linux
  • Mac
  • NLP
  • opencv
  • Perl
  • PHP
  • Python
  • RPC
  • Ruby
  • Visual C++ && C#
  • Windows
  • Wordpress
  • 前端技术
  • 大数据技术
  • 心情随笔
  • 搜索技术
  • 数据库技术
  • 未分类
  • 机器学习
  • 笔面题
  • 算法&数据结构
  • 网络&网络模拟
  • 计算机技术
  • 设计

Tags

  • Android
  • C
  • CentOS
  • c语言
  • Debian
  • docker
  • go
  • gtk
  • Hadoop
  • Hive
  • ios
  • Java && J2EE
  • Java && J2EE
  • Java核心技术
  • KVM
  • Linux
  • MySQL
  • nginx
  • Oracle
  • PHP
  • Python
  • Python Essential Reference
  • shell
  • socket
  • Ubuntu
  • VC
  • windows
  • 严蔚敏
  • 中文
  • 乱码
  • 卷2
  • 字符串
  • 安装
  • 实现
  • 排序
  • 教程
  • 数据结构
  • 核心技术
  • 算法
  • 算法技术手册
  • 编译
  • 读书笔记
  • 递归
  • 配置
  • 重读
Proudly powered by WordPress