💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
在cmd命令行中输入“notepad”可以打开记事本,用go程序实现。 ~~~ func main() { cmd := exec.Command("notepad") cmd.Run() } ~~~ 获取命令输出 ~~~ cmd := exec.Command("go", "version") output, _ := cmd.CombinedOutput() fmt.Printf("%s", output) ~~~