02 2021 档案

摘要:#!/bin/sh text=`ps -ef | awk '{print$2}'` #echo $text for i in $text do echo $i echo "kevin" done [ 说明 ]: 1 $text的类型是数组; 阅读全文
posted @ 2021-02-08 10:34 kevin_coding 阅读(51) 评论(0) 推荐(0)
摘要:#!/bin/sh input="./main.go" while read line do echo $line done < $input 阅读全文
posted @ 2021-02-07 23:31 kevin_coding 阅读(34) 评论(0) 推荐(0)
摘要:package main import ( "fmt" "reflect" ) func main() { var student = []string{"kevin", "jane", "tom"} fmt.Println(student) fmt.Println(reflect.TypeOf(s 阅读全文
posted @ 2021-02-07 22:57 kevin_coding 阅读(470) 评论(0) 推荐(0)