当前位置:网站首页>Go basic data types: characters and strings
Go basic data types: characters and strings
2022-06-29 06:26:00 【Yi Yue Wang Chao】
go Chinese characters and strings are different in nature .‘a’ Is the character ,“a” Is string .
python There is no concept of characters in , All strings .
go Example :
package main import "fmt" func main() { a := 'a' fmt.Printf("%T\n", a) fmt.Println(a+3) //'a' The essence is int, So you can add fmt.Println("*******************") b := "b" fmt.Printf("%T", b) }Running results :
int32 100 ******************* string
边栏推荐
- 2022.02.14 - 239. A single element in an ordered array
- Is there any difference between a=a+b and a+=b?
- Top ten Devops best practices worthy of attention in 2022
- Meso tetra (4-N, N, n-trimethylaminophenyl) porphyrin (ttmapp) /meso tetra - [4- (BOC threonine) aminophenyl] porphyrin (TAPP thr BOC) supplied by Qiyue
- After “Go to Definition”, is there a command to return to where you came from?
- Test Development - ten years of sharpening one sword (VII) interface test tool postman
- Design risc-v processor from scratch -- data adventure of five stage pipeline
- Leetcode simple problem building arrays with stack operation
- 5- (4-benzoimide phenyl) - 10,15,20-triphenylporphyrin (battph2) and its Zn complex (battpzn) / tetra (4-aminophenyl) porphyrin (tapph2) Qiyue supply
- Leetcode theme [array] -217- there are duplicate elements
猜你喜欢

Hyperledger Fabric 2. X custom smart contract

Rich material libraries make modeling easy and efficient for developers

Failure: unable to log in to "taxpayer equity platform"

Meta metauniverse female safety problems occur frequently. How to solve the relevant problems in the metauniverse?

Why are keys unordered in golang map

CCTV revealed that xumengtao won the black Technology: there was a virtual coach???

Modularization and modular specification commonjs

Manual (functional) test 1

Openfpga wishes you a happy Lantern Festival!

Difference between URI and URL
随机推荐
Hyperledger Fabric 2. X custom smart contract
National Defense University project summary
Top ten Devops best practices worthy of attention in 2022
Meta metauniverse female safety problems occur frequently. How to solve the relevant problems in the metauniverse?
Mongodb basic knowledge summary
Difference between parametric continuity and geometric continuity
Manual (functional) test 1
Case of single file component files
3 frequently tested SQL data analysis questions (including data and code)
What is MES? What does it do?
Hustoj SPJ example
2,5-di (3,4-dicarboxyphenoxy) - 4 '- phenylethynylbiphenyldianhydride (pephqda) / Qiyue custom supply porphyrin modified amphiphilic block copolymer peg113-pcl46-porphyrin
[C language series] - initial C language (4)
After “Go to Definition”, is there a command to return to where you came from?
Leetcode notes on question brushing (XIV) -- related topics of binary tree attributes in binary tree chapter
Parsing rshub document auto generation API
'only_ full_ group_ The influence of by'sql mode on group by and its treatment
Personal blog item: processing of reading number +1 after viewing article details
Loosely matched jest A value in tohavebeencalledwith - loose match one value in jest toHaveBeenCalledWith
Will the order of where conditions in MySQL affect the union index? Will where 1 =1 affect the use of the index? Does where 1 =1 affect the use of indexes?