遇见飞鱼 2021-10-09 16:43 采纳率: 100%
浏览 40
已结题

win10 版本号21H1 运行 go 出错 “go tool compile: open NUL: The system cannot find the file specified.”

有没有厉害的人知道怎么解决这个问题。
电脑的版本

img


go的版本1.17.2

img

运行错误的代码

package main

import (
   "fmt"
   "reflect"
)

func main(){
   num:=1
   var p *int
   p = &num
   fmt.Println("num变量的地址为:",p)
   fmt.Println("指针变量p的地址为:",&p)
   fmt.Println("指针变量p所指的内容:",*p)
   fmt.Println(reflect.TypeOf(p))
}

img

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 10月17日
    • 创建了问题 10月9日