04 2022 档案
摘要:环境变量配置 GoROOT是go的安装包,GOPATH是项目路径,比如hello.go所在项目的路径 工程结构是 project bin pkg src main.go bin是输出目录,src是工作目录 代码里注意package main 1 package main 2 3 import "fm
阅读全文
摘要:547. 省份数量 - 力扣(LeetCode) (leetcode-cn.com) 1 class Solution { 2 public: 3 vector<int>father; 4 int find(int x){ 5 if(father[x]==x) 6 return x; 7 retur
阅读全文
浙公网安备 33010602011771号