标签 数组 下的文章

Golang 遍历数组

依次输出数组中的值。package mainimport "fmt"func main() { a := [...]int{1, 2, 3} for i := range a { fmt.Println(i) fmt.Println(...

shell中数组与for循环的配合使用

从数据库取出商户列表,然后作为参数执行某个php脚本。#!/bin/bash # 对所有商户执行day_count.php source /root/.bash_profile cd /var/www/php/ # 取所有商户,放到cList数组 cList=`mysql -uroot -p1...