当前位置:网站首页>Go basic data type
Go basic data type
2022-07-02 23:20:00 【Yi Yue Wang Chao】
python Is a dynamic data type language , and go Is a static data type language .
go Define integer and floating point
Program
package main import "fmt" func main() { // Definition bool type var gender bool = false // true/false fmt.Println(gender) // Define integer type , It is divided into unsigned and signed , There were 8/16/32/64 position var a int8 = 127 // -128~127 var b uint8 = 255 // 0~255 fmt.Println(" plastic int8:", a) fmt.Println(" plastic uint8:", b) // floating-point var c float32 = -2.3 fmt.Println(" floating-point float32:", c) }Running results :
边栏推荐
- Lc173. Binary search tree iterator
- Win11启用粘滞键关闭不了怎么办?粘滞键取消了但不管用怎么解决
- Temperature measurement and display of 51 single chip microcomputer [simulation]
- Arduino - 字符判断函数
- 程序员版本的八荣八耻~
- Which common ports should the server open
- Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
- Editor Caton
- Learning Websites commonly used by circuit designers
- FOC矢量控制及BLDC控制中的端电压、相电压、线电压等概念别还傻傻分不清楚
猜你喜欢

Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!

Value sequence < detailed explanation of daily question >

购买完域名之后能干什么事儿?

Set right click to select vs code to open the file

The use of 8255 interface chip and ADC0809

China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!

Mask R-CNN

Print out mode of go

Hisilicon VI access video process
![[npuctf2020]ezlogin XPath injection](/img/6e/dac4dfa0970829775084bada740542.png)
[npuctf2020]ezlogin XPath injection
随机推荐
理想汽车×OceanBase:当造车新势力遇上数据库新势力
Eight honors and eight disgraces of the programmer version~
SQL advanced syntax
Easyclick, EC Quanlang network verification source code
php 获取真实ip
[Solved] Splunk: Cannot get username when all users are selected“
Win11如何开启目视控制?Win11开启目视控制的方法
Solution to boost library link error
Win11麦克风测试在哪里?Win11测试麦克风的方法
20220524_ Database process_ Statement retention
Win11自动关机设置在哪?Win11设置自动关机的两种方法
Prometheus deployment
内网渗透 | 手把手教你如何进行内网渗透
Xshell configuration xforward forwarding Firefox browser
Go basic anonymous variable
Win11系统explorer频繁卡死无响应的三种解决方法
Static file display problem
golang入门:for...range修改切片中元素的值的另类方法
从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试
2022年最新最全软件测试面试题大全
