菜鸟老于发布golang学习随笔v0.1
水平有限,难免错误,莫见笑,笔记转成了Pdf ,放到了百度网盘:https://pan.baidu.com/s/1hWP4usdm0PoWWt0UVyB8w...阅读全文
水平有限,难免错误,莫见笑,笔记转成了Pdf ,放到了百度网盘:https://pan.baidu.com/s/1hWP4usdm0PoWWt0UVyB8w...阅读全文
代码如下 ``` package main import ( "fmt" "os" ) func main() { file := "tex.py" info,_ := os.Stat(file) mode := info.Mode() fmt.Println(file, "mode is " , mode) fmt.Println(file, "mode is " , string(mode)) } ``` 因为我需要把结果值放到map里,map声明是string的,如何转换得到字符类型的结果...阅读全文