上一页 1 2 3 4 5 6 ··· 44 下一页
摘要: 时间类型 // timeDemo 时间对象的年月日时分秒 func timeDemo() { now := time.Now() // 获取当前时间 fmt.Printf("current time:%v\n", now) year := now.Year() // 年 day := now.Day 阅读全文
posted @ 2022-12-17 23:08 topass123 阅读(57) 评论(0) 推荐(0) 编辑
摘要: strconv与之前的strings有本质的区别。他不仅仅局限于字符本身的功能与字节的转化,还提供可int,bool的多种数据类型的解析 string 与 int 类型之间的转换 Atoi():字符串转整型 Itoa():整型转字符串 Parse 系列函数 Parse 系列函数用于将字符串转换为指定 阅读全文
posted @ 2022-12-17 22:56 topass123 阅读(22) 评论(0) 推荐(0) 编辑
摘要: os package main import ( "log" "os" ) func main() { // 1.文件的基础操作,create/open/close/chmod -> go/io库 f, err := os.Create("create.txt") if err != nil { l 阅读全文
posted @ 2022-12-17 22:28 topass123 阅读(21) 评论(0) 推荐(0) 编辑
摘要: json的序列化【本质是转化为可传输的二进制】 type Monster struct { Name string //如果改成小写,序列化时跨包会丢掉此字段 Age int `json:"age"` //代表json过后的重命名 Score float64 } func testStruct() 阅读全文
posted @ 2022-12-17 21:57 topass123 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 字符串涉及的用法strings 1)统计 strings.Count 2)替换 strings.Replace() 3)组合 strings.Join() 4)清洗 strings.Trim() 5)查找子串 strings.Index();strings.Contains() 6)分割 strin 阅读全文
posted @ 2022-12-17 21:47 topass123 阅读(56) 评论(0) 推荐(0) 编辑
摘要: import random import requests from selenium import webdriver #获得浏览器驱动 import time import cv2 import numpy as np from selenium.webdriver import ActionC 阅读全文
posted @ 2022-11-13 23:27 topass123 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 推荐链接: https://blog.csdn.net/weixin_45022563/article/details/123922815 阅读全文
posted @ 2022-11-13 23:17 topass123 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 软件下载地址 快 https://repo.huaweicloud.com/elasticsearch/ 慢 https://www.elastic.co/cn/downloads/past-releases#elasticsearch注意:安装es需要内存至少4G,否则安装不成功 解压与修改配置文 阅读全文
posted @ 2022-10-31 15:26 topass123 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 个人试用后的确好用界面也还凑合,主要是解决了crt的长连接问题 推荐链接: https://mp.weixin.qq.com/s?__biz=MzU2NDc4MjE2Ng==&mid=2247493070&idx=3&sn=531a178d919516a0efefceb1d1bf69ac&chksm 阅读全文
posted @ 2022-10-30 14:04 topass123 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 并发编程 并发:多个进程在某个时间,一起运行并行:多个进程在某个时刻,一起运行 python中对并发编程的支持 多线程:threading模块,利用CPU和IO可以同时执行的原理,让CPU不会干巴巴的等待IO完成多进程:multiprocessing模块,利用多核CPU的能力,真正的并行执行任务进程 阅读全文
posted @ 2022-10-29 22:09 topass123 阅读(28) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 44 下一页