摘要:
package main import "fmt" var ( names []string name string ) func main() { for i:=0;i<5;i++ { fmt.Printf("请输入第 %d 个人的姓名:",i+1) fmt.Scan(&name) names = 阅读全文
摘要:
冒泡排序 package main import "fmt" func main() { arrlist := [10]int{21,655,35,85,64,62,856,9748,963} fmt.Println("原数组元素为:",arrlist) for i:=0;i<len(arrlist 阅读全文