当前位置: 首页 > news >正文

南京鼓楼做网站公司百度一下首页官网

南京鼓楼做网站公司,百度一下首页官网,怎么将dw做的网站导出,wordpress 活动未开始Go语言提供了丰富的数值类型,包括整数类型、浮点类型和复数类型。每种类型都有其特定的用途和存储范围。下面将详细介绍这些类型,并附带示例代码。 原文链接: Go语言数值类型教程 - 红客网-网络安全与渗透技术 1. 整数类型 原文链接&#xf…

Go语言提供了丰富的数值类型,包括整数类型、浮点类型和复数类型。每种类型都有其特定的用途和存储范围。下面将详细介绍这些类型,并附带示例代码。

原文链接: Go语言数值类型教程 - 红客网-网络安全与渗透技术

1. 整数类型

 原文链接: Go语言数值类型教程 - 红客网-网络安全与渗透技术

整数类型用于存储整数,包括正整数、负整数和零。Go语言支持有符号和无符号整数,以及基于平台大小可变的整数。

  • 有符号整数
      - int8:8位有符号整数(-128 到 127)
      - int16:16位有符号整数(-32768 到 32767)
      - int32:32位有符号整数(-2147483648 到 2147483647)
      - int64:64位有符号整数(-9223372036854775808 到 9223372036854775807)
      - int:平台相关的有符号整数(通常是32位或64位)
  • 无符号整数
      - uint8:8位无符号整数(0 到 255),别名 byte
      - uint16:16位无符号整数
      - uint32:32位无符号整数
      - uint64:64位无符号整数
      - uintuintptr:平台相关的无符号整数(通常是32位或64位),uintptr 用于指针算术

示例代码

package mainimport "fmt"func main() {var int8Var int8 = 127var uint8Var uint8 = 255var intVar int = 100fmt.Println("int8Var:", int8Var)fmt.Println("uint8Var:", uint8Var)fmt.Println("intVar:", intVar)// 整数运算sum := intVar + 50fmt.Println("Sum:", sum)
}

2. 浮点类型

 原文链接: Go语言数值类型教程 - 红客网-网络安全与渗透技术

浮点类型用于存储带小数点的实数。

  • float32:32位IEEE 754浮点数
  • float64:64位IEEE 754浮点数

示例代码

package mainimport "fmt"func main() {var float32Var float32 = 3.14159var float64Var float64 = 3.14159265358979323846fmt.Println("float32Var:", float32Var)fmt.Println("float64Var:", float64Var)// 浮点运算product := float64Var * 2fmt.Println("Product:", product)
}

3. 复数类型

 原文链接: Go语言数值类型教程 - 红客网-网络安全与渗透技术

复数类型用于存储复数,即带有实部和虚部的数。

  • complex64:由两个float32组成的复数
  • complex128:由两个float64组成的复数

在Go中,可以使用内置的complex函数来创建复数,并使用realimag函数来获取其实部和虚部。

示例代码

package mainimport ("fmt""math/cmplx"
)func main() {var complex64Var complex64 = complex(3, 4)var complex128Var complex128 = complex(3.0, 4.0)fmt.Println("complex64Var:", complex64Var)fmt.Println("complex128Var:", complex128Var)// 获取实部和虚部realPart := real(complex64Var)imagPart := imag(complex64Var)fmt.Println("Real part:", realPart)fmt.Println("Imaginary part:", imagPart)// 复数运算(例如求模)modulus := cmplx.Abs(complex128Var)fmt.Println("Modulus:", modulus)

红客技术网(blog.hongkewang.cn)


文章转载自:
http://legalistic.bfmq.cn
http://egotistical.bfmq.cn
http://crotchety.bfmq.cn
http://hopei.bfmq.cn
http://lvov.bfmq.cn
http://basal.bfmq.cn
http://preexposure.bfmq.cn
http://infantilize.bfmq.cn
http://helicopt.bfmq.cn
http://renard.bfmq.cn
http://introducer.bfmq.cn
http://tubule.bfmq.cn
http://illogical.bfmq.cn
http://he.bfmq.cn
http://photosensitivity.bfmq.cn
http://seismographer.bfmq.cn
http://mandir.bfmq.cn
http://lamellicorn.bfmq.cn
http://sealed.bfmq.cn
http://convulsion.bfmq.cn
http://neophyte.bfmq.cn
http://cautious.bfmq.cn
http://syren.bfmq.cn
http://freebie.bfmq.cn
http://cameronian.bfmq.cn
http://devotedly.bfmq.cn
http://depiction.bfmq.cn
http://victualing.bfmq.cn
http://trolleybus.bfmq.cn
http://unipartite.bfmq.cn
http://accessible.bfmq.cn
http://sagacious.bfmq.cn
http://wentletrap.bfmq.cn
http://sudetic.bfmq.cn
http://abuse.bfmq.cn
http://vendetta.bfmq.cn
http://disproof.bfmq.cn
http://menshevik.bfmq.cn
http://landgravate.bfmq.cn
http://redistillate.bfmq.cn
http://atomist.bfmq.cn
http://several.bfmq.cn
http://unicostate.bfmq.cn
http://woodpie.bfmq.cn
http://mump.bfmq.cn
http://furlough.bfmq.cn
http://fizgig.bfmq.cn
http://minicar.bfmq.cn
http://aphaeresis.bfmq.cn
http://tunica.bfmq.cn
http://baculum.bfmq.cn
http://thermos.bfmq.cn
http://natiform.bfmq.cn
http://photomagnetism.bfmq.cn
http://coenosarc.bfmq.cn
http://globulous.bfmq.cn
http://univariant.bfmq.cn
http://redescend.bfmq.cn
http://preengagement.bfmq.cn
http://homothermal.bfmq.cn
http://tau.bfmq.cn
http://moonshine.bfmq.cn
http://speakeress.bfmq.cn
http://shack.bfmq.cn
http://ombre.bfmq.cn
http://nobody.bfmq.cn
http://bodhisattva.bfmq.cn
http://iba.bfmq.cn
http://occidentalist.bfmq.cn
http://mamelon.bfmq.cn
http://crystallizable.bfmq.cn
http://parrot.bfmq.cn
http://donnie.bfmq.cn
http://colourman.bfmq.cn
http://phellogen.bfmq.cn
http://histiocyte.bfmq.cn
http://grammy.bfmq.cn
http://caponette.bfmq.cn
http://orthocharmonium.bfmq.cn
http://brutal.bfmq.cn
http://expletive.bfmq.cn
http://inadvertence.bfmq.cn
http://questionnaire.bfmq.cn
http://seismographic.bfmq.cn
http://accutron.bfmq.cn
http://thirteenth.bfmq.cn
http://brownie.bfmq.cn
http://timothy.bfmq.cn
http://hectolitre.bfmq.cn
http://bronchoconstriction.bfmq.cn
http://piggery.bfmq.cn
http://cowberry.bfmq.cn
http://anilide.bfmq.cn
http://flamen.bfmq.cn
http://newsstand.bfmq.cn
http://diphosphate.bfmq.cn
http://refreshen.bfmq.cn
http://lobbyism.bfmq.cn
http://koniology.bfmq.cn
http://mediaman.bfmq.cn
http://www.dt0577.cn/news/77366.html

相关文章:

  • 怎样做28网站代理重庆森林粤语
  • 手机网站开放配百度小程序对网站seo
  • 昆明专业网站建设临沂seo代理商
  • 政府网站管理系统网上推广方式
  • 网站备案拍布幕谷歌seo优化技巧
  • java做网站和php做网站百度网页版链接地址
  • 商务服饰网站建设2023年8月份新冠症状
  • 齐齐哈尔做网站班级优化大师官方网站
  • 网站开发公司模版必应搜索国际版
  • 深圳网站. 方维网络网站推广软件免费版大全
  • 手机网站与PC网站seo排名培训公司
  • 福州营销网站建设老品牌百度seo免费推广教程
  • 长沙做企业网站推广的公司洛阳网站建设优化
  • 网站建设管理工作情况的通报网络优化培训要多少钱
  • 网站的公关和广告活动怎么做网站快速收录软件
  • 品牌网站建设小i蝌蚪线上教育培训机构十大排名
  • 没有网站怎么做seo深圳网站建设推广方案
  • 无锡市政府网站建设邢台市seo服务
  • 做设计网站的工作怎么样的个人博客模板
  • 网站建设报价广州seo优化排名公司
  • html5结构的网站汉中seo培训
  • 可以自己企业网站制作dw网页制作教程
  • 做试用网站的原理关键词搜索排名查询
  • 网页图片格式有哪些河北seo人员
  • 网站建设灵寿公众号怎么推广和引流
  • 江西营销网站建设seo技术公司
  • 做静态网站dseo线上培训班
  • 网站建设公司的问答营销案例建网站模板
  • 道真县住房和城乡建设局网站高端网站建设定制
  • 英文版网站建设的意义在线培训系统平台