go 格式化秒
摘要:
package main import ( "fmt" ) func SecondFormat(diffSec int) (timeStr string) { if diffSec <= 60 { //多少秒 timeStr = fmt.Sprintf("%d秒", diffSec) } else 阅读全文
posted @ 2021-11-16 09:57 running-fly 阅读(37) 评论(0) 推荐(0) 编辑