Golang 遍历数组 2017-04-14 枫叶 依次输出数组中的值。package mainimport "fmt"func main() { a := [...]int{1, 2, 3} for i := range a { fmt.Println(i) fmt.Println(...
shell中数组与for循环的配合使用 2016-05-26 枫叶 从数据库取出商户列表,然后作为参数执行某个php脚本。#!/bin/bash # 对所有商户执行day_count.php source /root/.bash_profile cd /var/www/php/ # 取所有商户,放到cList数组 cList=`mysql -uroot -p1...