标签:bsp string pac main ++ nbsp int lis class
package main import ( "fmt" "time" ) func say(s string) { for i := 0; i < 5; i++ { time.Sleep(100 * time.Millisecond) fmt.Println(s) } } func main() { go say("hello1") say("hello2") }
输出:
hello2
hello1
hello1
hello2
hello2
hello1
hello2
hello1
hello2
标签:bsp string pac main ++ nbsp int lis class
原文地址:https://www.cnblogs.com/sea-stream/p/10325398.html