代码如下
```
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的,如何转换得到字符类型的结果呢