摘要:
场景 python 代码,打印1~3000,每秒打印一次 ## file_name: test.py import time i = 0 while 1: time.sleep(1) i = i + 1 print(i) if i > 3000: break 问题:直接在终端执行:python te 阅读全文
摘要:
for range 遍历规律 字符串、数组、切片,返回下标、值 map返回key、val channel只返回通道内的值 举例 func ForArrayTest() { fmt.Println("for range: str") str := "hello" for key, val := ran 阅读全文