Go语言计算指定年月天数的方法
本文实例讲述了Go语言计算指定年月天数的方法。分享给大家供大家参考。具体实现方法如下: 代码如下:package main import ( “fmt” “bufio” “os” “regexp” “strconv” ) func main() { year := input(“year”, “^[0-9]{1}[0-9]{3}$”) month := input(“month”, “^(0{1}[0-9]{1}|1{1}[0-2]{1})$”) count(year, month) fmt.Println(“Press
下载地址
用户评论