04 2022 档案

摘要:python 面向对象设计 https://www.cnblogs.com/linhaifeng/articles/6182264.html#4046300 面向对象进阶 https://www.cnblogs.com/linhaifeng/articles/6204014.html 阅读全文
posted @ 2022-04-30 23:15 ty1539 阅读(98) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" ) func main() { //test_for() test_label() } func test_for() { str := "hello,world! 中国" for index, val := range str { fmt.P 阅读全文
posted @ 2022-04-30 16:52 ty1539 阅读(75) 评论(0) 推荐(0) 编辑
摘要:/* 函数也是一种类型 */ package main import ( "fmt" ) /* 自定义函数类型 接受两个int参数,返回int类型*/ type op_func func(int, int) int func main() { test_func() } func test_func 阅读全文
posted @ 2022-04-30 16:40 ty1539 阅读(27) 评论(0) 推荐(0) 编辑
摘要:栈: 先进后出, 子弹装入弹夹, 进入:压栈, 出去:出栈,弹出 函数就是栈内存, 效率高, 栈内存, 内存是在栈空间上分配的 大小 c语音的有1M, go语言有几百kb 堆: 先进先出 系统公用的一块内存, 效率没有栈高 大小 几十G 一个进程有多个线程, 线程空间就是在堆空间内分配,有加锁,解锁 阅读全文
posted @ 2022-04-30 15:29 ty1539 阅读(24) 评论(0) 推荐(0) 编辑
摘要:package main import "fmt" func calc(a , b int) (int,int){ sum := a+b sub := a-b return sum,sub } func calc1(a , b int) (sum int,sub int){ sum = a+b su 阅读全文
posted @ 2022-04-29 23:41 ty1539 阅读(29) 评论(0) 推荐(0) 编辑
摘要:package main import( "fmt" ) func justify(n int) bool{ if n <=1{ return false } for i:=2;i<n;i++{ if n %i == 0 { return false } } return true } func e 阅读全文
posted @ 2022-04-29 23:36 ty1539 阅读(27) 评论(0) 推荐(0) 编辑
摘要:chrome://flags/ 搜索栏输入: Tab Hover Card Images 改为enabled 重启浏览器, 就会标签预览功能 多线程下载: 输入: download 会出现 Parallel downloading,改为enabled 重启浏览器,如果下载的东西支持多线程下次,下次下 阅读全文
posted @ 2022-04-28 00:09 ty1539 阅读(386) 评论(0) 推荐(0) 编辑
摘要:func main(){ var chinese = "我是中国人, I am Chinese" fmt.Println("chinese length", len(chinese)) fmt.Println("chinese word length", len([]rune(chinese))) 阅读全文
posted @ 2022-04-27 21:26 ty1539 阅读(57) 评论(0) 推荐(0) 编辑
摘要:Day 10 http 编程 Go 原生支持 http, import "net/http" Go 的 http 服务性能和 nginx 比较接近 几行代码就可以实现一个 web 服务 简单的例子 package main import ( "fmt" "net/http" ) func Hello 阅读全文
posted @ 2022-04-26 22:49 ty1539 阅读(17) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" _ "github.com/go-sql-driver/mysql" "github.com/jmoiron/sqlx" ) var Db *sqlx.DB func init() { database, err := sqlx.Open("m 阅读全文
posted @ 2022-04-26 22:42 ty1539 阅读(46) 评论(0) 推荐(0) 编辑
摘要:计算机需要解决的最根本问题:如何代表数字晶体管是如何工作的: https://haokan.baidu.com/v?vid=16026741635006191272&pd=bjh&fr=bjhauthor&type=video lntel cpu的制作过程 htps:/haokan.baidu.co 阅读全文
posted @ 2022-04-25 23:20 ty1539 阅读(139) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/welhzh/p/8981096.html 1, math/big package main import ( "fmt" "math/big" "time" ) const LIM = 10000 //求第10000位的费布拉切数 var fibs 阅读全文
posted @ 2022-04-24 23:52 ty1539 阅读(117) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/linhaifeng/ 阅读全文
posted @ 2022-04-23 11:54 ty1539 阅读(419) 评论(0) 推荐(0) 编辑
摘要:k8s 和普米 https://www.kancloud.cn/huyipow/prometheus/527093 阅读全文
posted @ 2022-04-20 19:14 ty1539 阅读(30) 评论(0) 推荐(0) 编辑
摘要:附上三个SQLAlchemy教程 SQLAlchemy的基本操作大全 http://www.taodudu.cc/news/show-175725.html Python3+SQLAlchemy+Sqlite3实现ORM教程 https://www.cnblogs.com/jiangxiaobo/p 阅读全文
posted @ 2022-04-20 00:01 ty1539 阅读(115) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yuanchenqi/articles/8719520.html 阅读全文
posted @ 2022-04-19 22:29 ty1539 阅读(29) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yuanchenqi/articles/8719520.html 阅读全文
posted @ 2022-04-17 22:08 ty1539 阅读(24) 评论(0) 推荐(0) 编辑
摘要:如何使用开源项目学习(Github的使用) pushed:>2019-02-01 # 在最近这一天修改过 in:name [关键字] # 名字里面包含关键字 in:readme [关键字] # readme里面包含关键字 in:description 【关键字】# 描述里面包含关键字 forks:> 阅读全文
posted @ 2022-04-17 11:10 ty1539 阅读(212) 评论(0) 推荐(0) 编辑
摘要:1、https://visualgo.net/zh 2、https://algorithm-visualizer.org/ 3、https://pythontutor.com/ 我在电脑端试了下都能打开,没架梯子没FQ 阅读全文
posted @ 2022-04-17 11:02 ty1539 阅读(128) 评论(0) 推荐(0) 编辑
摘要:猴子都能懂的git https://backlog.com/git-tutorial/cn/ 阅读全文
posted @ 2022-04-17 10:55 ty1539 阅读(210) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/linhaifeng/articles/8029564.html 阅读全文
posted @ 2022-04-17 07:58 ty1539 阅读(32) 评论(0) 推荐(0) 编辑
摘要:celery 牛哄哄的celery https://www.cnblogs.com/pyedu/p/12461819.html http://www.360doc.com/content/22/1208/11/81250822_1059437831.shtml Python schedules.cr 阅读全文
posted @ 2022-04-13 22:51 ty1539 阅读(248) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_33801641/article/details/119793104 阅读全文
posted @ 2022-04-12 11:38 ty1539 阅读(18) 评论(0) 推荐(0) 编辑
摘要:数据库基础: https://www.cnblogs.com/yuanchenqi/articles/6357507.html 数据库进阶: https://www.cnblogs.com/yuanchenqi/articles/6437362.html https://www.cnblogs.co 阅读全文
posted @ 2022-04-10 16:49 ty1539 阅读(206) 评论(0) 推荐(0) 编辑
摘要:Day 03 strings 和 strconv 的使用 strings.HasPrefix(str string, prefix string) bool :判断字符串 str 是否以 prefix 开头 strings.HasSuffix(str string, suffix string) b 阅读全文
posted @ 2022-04-09 15:02 ty1539 阅读(42) 评论(0) 推荐(0) 编辑
摘要:简单版 package main import ( "fmt" "io" "net/http" "os" "strconv" ) func HttpGet(url string) (result string, err error) { resp, err1 := http.Get(url) if 阅读全文
posted @ 2022-04-09 11:47 ty1539 阅读(61) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" "strconv" ) func main() { // 把数字转换成字符串类型 i1 := int32(97) fmt.Printf("i1 = %d, %T, %#v,%#v \n",i1,i1,i1,string(i1)) ret2 := 阅读全文
posted @ 2022-04-09 10:52 ty1539 阅读(27) 评论(0) 推荐(0) 编辑
摘要:一、notepad主题设置 设置->语言格式设置 1.主题选择:plastic code wrap 2.调整行间距:Global Styles->Line number margine->字体大小 12 3.选中文本颜色:Global Styles->Selected text colour 背景色 阅读全文
posted @ 2022-04-08 16:25 ty1539 阅读(234) 评论(0) 推荐(0) 编辑
摘要:package main import ( "flag" "fmt" ) var ( recusive bool test string level int ) func init() { flag.BoolVar(&recusive,"r",false,"recusive xxx") flag.S 阅读全文
posted @ 2022-04-03 00:07 ty1539 阅读(153) 评论(0) 推荐(0) 编辑
摘要:package main import ( "fmt" "os" ) func main(){ fmt.Println("args[0]=",os.Args[0] ) // os.Args[0] 是该程序的名称 if len(os.Args)>1 { for index,v := range os. 阅读全文
posted @ 2022-04-03 00:03 ty1539 阅读(678) 评论(0) 推荐(0) 编辑
摘要:读取文本 package main import ( "bufio" "fmt" "io" "os" ) // bufio是对文件读取file.Read(buf[:])的进一步封装,先从buf中读取,没有的话,再从文件读, func main(){ // 只读的方式打开 file,err := os 阅读全文
posted @ 2022-04-02 23:58 ty1539 阅读(131) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示