摘要:
示例代码如下: from matplotlib import pyplot as plt from matplotlib import font_manager # x轴坐标 x = range(2, 26, 2) # y轴坐标 y = [15, 13, 14.5, 17, 20, 25, 26, 阅读全文
posted @ 2021-03-25 17:56
程序员陈师兄cxycsx
阅读(40)
评论(0)
推荐(0)
摘要:
Go变量 变量的定义: var i int i = 10 fmt.Println("i=", i) 注: 声明变量后不赋值,将使用默认值 变量不声明类型,根据类型自动推导 省略var,使用:=声明变量 示例代码如下: // var i int // i = 8 i := 8 默认值如下: int:0 阅读全文
posted @ 2021-03-16 22:31
程序员陈师兄cxycsx
阅读(55)
评论(0)
推荐(0)
摘要:
打开控制面板 > 硬件和声音 > 选择无声 阅读全文
posted @ 2021-03-16 17:57
程序员陈师兄cxycsx
阅读(186)
评论(0)
推荐(0)
摘要:
1.下载软件包 开发环境VC6.0 下载地址:https://pan.baidu.com/s/1nxee1AD 提取密码:wdhk 2.新建一个工程 文件 > 新建 > 工程 选择Win32 Console Application 3.新建C源文件 文件 > 文件 > C++ Source File 阅读全文
posted @ 2021-03-16 17:47
程序员陈师兄cxycsx
阅读(799)
评论(0)
推荐(0)
摘要:
gofmt -w hello.go 阅读全文
posted @ 2021-03-16 15:16
程序员陈师兄cxycsx
阅读(51)
评论(0)
推荐(0)
摘要:
Go语言注释 行注释 // 注释内容 块注释 /* * 注释内容 */ 阅读全文
posted @ 2021-03-16 15:13
程序员陈师兄cxycsx
阅读(75)
评论(0)
推荐(0)
摘要:
转义字符 制表符:\t 换行符:\n 反斜杆:\\ 回车:\r 从当前行最前面输出,覆盖已输出的字符 阅读全文
posted @ 2021-03-16 14:57
程序员陈师兄cxycsx
阅读(28)
评论(0)
推荐(0)
摘要:
Go编译 go build -o myhello.exe hello.go 编译并运行 go run hello.go 阅读全文
posted @ 2021-03-16 14:35
程序员陈师兄cxycsx
阅读(66)
评论(0)
推荐(0)
摘要:
第一个Go程序 目录结构 C:\USERS\GMBJZG\GOPROJECT └─src └─code └─project01 └─main hello.exe hello.go 第一个Go程序 package main import "fmt" func main(){ fmt.Println(" 阅读全文
posted @ 2021-03-16 14:06
程序员陈师兄cxycsx
阅读(37)
评论(0)
推荐(0)
摘要:
Go语言开发环境搭建 1.下载SDK 官网下载:https://golang.google.cn/ 2.配置环境变量 添加GOROOT环境变量 C:\Users\gmbjzg\software\go PATH添加 %GOROOT%\bin 添加GOPTATH环境变量 C:\Users\gmbjzg\ 阅读全文
posted @ 2021-03-16 13:37
程序员陈师兄cxycsx
阅读(324)
评论(0)
推荐(0)
浙公网安备 33010602011771号