Search…
V by Example
en
V por exemplos
V mit einem Beispiel
V dengan Contoh
通过例子学V语言
例子
section_3
section_1
基本类型
关键字
变量
print系列函数
字符
注释
section_4
section_2
コード例で学ぶV言語
Changelog
Contributing
Documentation Style Guide
Powered By
GitBook
基本类型
V的基本类型比Go少。
基本数据类型
bool 也就是
true
或者
false
string 字符类型
整数类型
int
浮点数类型
float
rune (Unicode字符串)
复合类型
arrays
[]
map
{}
struct
整数
整数被细分为“signed”和“unsigned”。
signed
表示正或负,
unsigned
仅表示正。
Signed Integer
类型
大小
范围
int8
8 bits
-128 to 27 -1
int16
16 bits
-215 to 215 - 1
int
32 bits
-231 to 231 - 1
int64
64 bits
-263 to 263 - 1
int128
128 bits
-2127 to 2127 - 1
Unsigned Integer
类型
大小
范围
byte
8 bits
0 to 27 -1
u16
16 bits
0 to 215 - 1
u32
32 bits
0 to 231 - 1
u64
64 bits
0 to 263 - 1
u128
128 bits
0 to 2127 - 1
Previous
section_1
Next
关键字
Last modified
1yr ago
Copy link
Contents
基本数据类型
复合类型
整数
Signed Integer
Unsigned Integer