摘要: 开始时看到这个实在没明白怎么回事测试了下才知道原来<-chan int 像这样的只能接收值chan<- int 像这样的只能发送值 阅读全文
posted @ 2015-04-17 15:24 浊浊然 阅读(10879) 评论(0) 推荐(1) 编辑
摘要: package mainimport ( "fmt" "time")func main() { requests := make(chan int, 5) for i := 1; i <= 2; i++ { requests <- i } close... 阅读全文
posted @ 2015-04-17 14:41 浊浊然 阅读(5717) 评论(0) 推荐(0) 编辑
摘要: 一、去空格及特殊符号1s.strip().lstrip().rstrip(',')二、复制字符串12345#strcpy(sStr1,sStr2)sStr1='strcpy'sStr2=sStr1sStr1='strcpy2'print(sStr2)三、连接字符串12345#strcat(sStr1... 阅读全文
posted @ 2015-04-17 10:41 浊浊然 阅读(295) 评论(0) 推荐(0) 编辑