摘要: ![](https://img2023.cnblogs.com/blog/3302358/202312/3302358-20231227170132689-958083029.png) 阅读全文
posted @ 2023-12-27 17:01 朝阳1 阅读(9) 评论(0) 推荐(0)
摘要: from turtle import * def nose(x,y): pu() goto(x,y) pd() seth(-30) begin_fill() a=0.4 for i in range(120): if 0<=i<30 or 60<=i<90: a=a+0.08 lt(3) fd(a) 阅读全文
posted @ 2023-12-27 10:07 朝阳1 阅读(157) 评论(0) 推荐(0)
摘要: 官方示例 package main import ( "fmt" "github.com/panjf2000/ants/v2" "sync" "sync/atomic" "time" ) var sum int32 func myFunc(i interface{}) { n := i.(int32 阅读全文
posted @ 2023-12-27 09:59 朝阳1 阅读(126) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "sync" ) type Task struct { f func() error } var wg sync.WaitGroup type Pool struct { //任务通道 JobQueue chan Task //worker通道 阅读全文
posted @ 2023-12-27 09:58 朝阳1 阅读(23) 评论(0) 推荐(0)