上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 55 下一页
摘要: function producer() local i = 0 print(coroutine.running()) while true do i = i + 1 if i > 5 then error('out of number') end print('In Producer>> corou 阅读全文
posted @ 2022-05-29 17:46 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: repeat unitl 先执行循环体, 满足until条件时退出 for 阅读全文
posted @ 2022-05-29 12:59 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 一维数组 模拟 二维数组 array = {} rows = 3 cols = 4 for row = 1, rows do for col = 1, cols do array[(row - 1) * cols + col] = row * col end end for row = 1, row 阅读全文
posted @ 2022-05-29 00:12 ascertain 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 实现continue功能: 输出odd number: b = 0 while b < 10 do if b % 2 == 0 then goto continue end print(b) :: continue :: b = b + 1 end 阅读全文
posted @ 2022-05-28 23:18 ascertain 阅读(96) 评论(0) 推荐(0) 编辑
摘要: Module ngx_http_gzip_module (nginx.org) # http block include /etc/nginx/conf.d/gzip.conf gzip on; gzip_comp_level 6; gzip_min_length 1024; gzip_http_v 阅读全文
posted @ 2022-05-27 13:10 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-25 23:41 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 数据收集 import java.util.stream.Collectors; import java.util.stream.Stream; public class B{ public static void main(String[] args){ List<Integer> l1 = St 阅读全文
posted @ 2022-05-25 19:03 ascertain 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 类名::引用实例方法Java 类名只能引用静态方法, 类名引用实例方法是 拿第一个参数作为方法的调用者 import java.util.function.BiFunction; import java.util.function.Function; public class addThen{ pu 阅读全文
posted @ 2022-05-25 13:04 ascertain 阅读(60) 评论(0) 推荐(0) 编辑
摘要: java.util.function 定义了一些预定义FuncationInterface Supplier: import java.util.function.Supplier; public class addThen{ public static void main(String[] arg 阅读全文
posted @ 2022-05-25 12:11 ascertain 阅读(129) 评论(0) 推荐(0) 编辑
摘要: VisualVM: Plugins Centers 阅读全文
posted @ 2022-05-23 20:49 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" ) type node struct { id int name string next *node // Node会造成循环引用 } type SingleLinkedList struct { head *node // head!=nil 阅读全文
posted @ 2022-05-23 20:22 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" ) type Node struct { row int col int val int } func main() { var vail [7][9]int vail[2][8] = 5 vail[5][3] = 6 for _, row : 阅读全文
posted @ 2022-05-23 16:03 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要: package main import ( "errors" "fmt" "os" ) type Queue struct { size int array []int head int tail int } func (queue *Queue) Push(v int) error { if qu 阅读全文
posted @ 2022-05-23 15:10 ascertain 阅读(19) 评论(0) 推荐(0) 编辑
摘要: https://codingbee.net/powershell/powershell-make-a-permanent-change-to-the-path-environment-variable New-Item -ItemType Directory -Path C:\Windows\Pat 阅读全文
posted @ 2022-05-22 22:23 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: GPG: GnuPG(GNU Privacy Guard), GnuPG is an Open Source alternative to the well-know Pretty Good Privacy(PGP). dirmngr: 管理 CRL & OCSP 配置文件 /root/.gnupg 阅读全文
posted @ 2022-05-22 20:32 ascertain 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-22 16:09 ascertain 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Server: import socket sock = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM) sock.bind(('0.0.0.0', 2222)) while True: msg, addr = sock.re 阅读全文
posted @ 2022-05-22 16:04 ascertain 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Refresh <META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://host/path"> nginx: add_header Refresh '5; URL=https://www.baidu.com'; 阅读全文
posted @ 2022-05-22 11:37 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-22 00:04 ascertain 阅读(235) 评论(0) 推荐(0) 编辑
摘要: No Callback: package io.veer; import org.apache.kafka.clients.producer.KafkaProducer; import org.apache.kafka.clients.producer.ProducerConfig; import 阅读全文
posted @ 2022-05-21 23:59 ascertain 阅读(46) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 55 下一页