02 2021 档案
摘要:#!/bin/sh text=`ps -ef | awk '{print$2}'` #echo $text for i in $text do echo $i echo "kevin" done [ 说明 ]: 1 $text的类型是数组;
阅读全文
摘要:#!/bin/sh input="./main.go" while read line do echo $line done < $input
阅读全文
摘要:package main import ( "fmt" "reflect" ) func main() { var student = []string{"kevin", "jane", "tom"} fmt.Println(student) fmt.Println(reflect.TypeOf(s
阅读全文

浙公网安备 33010602011771号