第 3 章 数据类型

《Python3程序开发指南(第二版)》第3章 组合数据类型 练习 1. 修改external_sites.py程序,使用一个默认的字典。 阅读详情

第 3 章 数据类型

1.内置数据类型的长度、默认类型(有符、无符)有编译器决定,不是c++标准。各编译器对整数字面值的长度限制不同,超过一定规定长度报错,未超规定长度但超出表示范围,虽合法但不合理。同样程序在不同编译器上编译出的指令不同。

2.  (1)表示成无符或长整要在整数字面值后加U或L,大小写均可。如:b=012345L;c=235u;

(2)浮点数字面值默认为double型,要表示成float则需在浮点数后面加F或f。

3.取余运算的正负性取决于被除数的正负性,被除数正则余数正,被除数负则余数负:

11 %(-5)= 1; -11 %(-5)= -1;

4.ASCII码128个,其中33个(0——31,127)不可见的控制字符。转义字符可以表示不可见字符:

/t:水平制表符 /v:垂直制表符 /r:回车 /n换行 /a:响铃 /ddd:1-3位八进制数 /xhh:1-2位十六进制数

5.枚举型:

    (1)枚举型enum Week{Mon,Tue,Wed,Thu,Fri,Sat,Sun};默认时,第一个对应整数:0,一次类推。

枚举值虽然对应整数,但枚举变量却不能取整数值,只能通过强制类型转换:

Week week = 0; //wrong. week = Mon;week = Week(0);//right.

    (2)枚举符作为整形数的一个子集,可以直接参与整数能享有的所有运算,而且可以脱离枚举变量的定义使用:

enum Week{Mon,Tue,Wed,Thu,Fri,Sat,Sun}; if(a == Mon) cout << "monday./n";

(3)进入函数调用或其他模块时,常量需要初始化,而枚举无需定义其实体,可直接使用枚举符,代替常量使用。

6.布尔:默认输出形式为0/1,要输出true/false,需加控制符:cout << boolalpha<<d<<endl;

7.C-strig & string

C-串是字符串字面值,以一个全0位字节作为结束符。C-串长度为字符串长度加1。C串类型为const char*。

8.字符指针&字符数组

    (1)指针表示内存空间位置,输出字符指针的间接引用(*str)就是输出单个字符,输出字符指针就是输出C串。

char * str = "hello";

cout << *str <<endl; //h

cout << str <<endl; //hello

    (2)数组不能复制:

char a1[6] = "hello";

//char a2[6] = a1; //错,数组是不能复制的

(3)c串操作,默认在string.h中,标准c++中,iostream包含了它:

char * s1 = "hello"; 

char * s2 = "123";

char a[20];

strcpy(a,s1); //复制

cout << (strcmp(a,s1) == 0 ? " " :"not " )<< "equal." <<endl; //比较

cout << strcat(a,s2) << endl;//连接

cout << strrev(a) <<endl; //倒置

cout <<strset(a,'c') <<endl;//设置

cout << (strstr(s1,"ell") ? " " : "not ") << "found" <<endl;//查找字符串

cout << (strchr(s2,'c') ? " " : "not ") << "found" <<endl;//查找字符

9.string:

(1)string操作:

string a, s1 = "hello ";

string s2 = "123";

a = s1; //复制

cout << (a == s1 ? " " : "not ") << "equal." <<endl;

cout << a + s2 <<endl; //连接

reverse(a.begin(),a.end()); //倒置

cout << a <<endl; 

cout << a.replace(0,9,9,'c') <<endl; //替换

cout << (s1.find("ell") != -1 ? " " : "not ") << "found." <<endl; //查找字符串

cout << (s1.find('c') != -1 ? " " : "not ") << "found." <<endl; //查找字符

(2)cin 将前导空格(空格、回车、水平或垂直制表符)滤掉,读入单词,遇到空格结束.

         getline总是将末行的回车符滤掉.

10.数组

(1)int array[5] ={}; //error! 初始值不能为空

(2)int array[5] ={0};//若果初始个数不等于数组大小,则后面全部补零;

(3)int a[]; //error

(4)int a[] ={1,2,3}; //ok

for(int = 0; i < sizeof(a) /sizeof(a[0]);i++) //sizeof(a) 表示数组的字节数

用sizeof(a) /sizeof(a[0])而直接用数组的大小的原因: 增加了代码的通用性,当a的类型或大小变化时,此代码不变。

(5)初始化方式:

char ch1[4] ={"leo"}; //以'/0'结束

char ch2[3]={'l',''e,'o'};

char ch3[4]="leo"; //以'/0'结束

(6)全局数组和静态数组默认值为0,局部数组默认初始值不确定。

11.向量

(1)vector<int>d(b.begin(),b.begin()+3); //定义向量d,其值以此为b中的0~2(共3个)元素的值。

(2) 遍历:

for(int i = 0; i < a.size(); i++) cout << a[i];

for(vector<int>::iterator it =  a.begin(); it !=  a.end(); it++) cout << *it;

(3) capacity:供扩展之用的未用元素个数

vector<int> vec3(10);

vector<int> vec4;

cout <<vec3.size()<<endl; // 10

cout <<vec3.capacity<<endl; // 1

cout <<vec4.size()<<endl; // 0

cout <<vec4.capacity<<endl; //1

(4)向量常用操作

vec5.assign(vec.begin(),vec.begin()+4);//赋值

vec5.assign(4,2);

int x = vec.back();//尾元素

int y = vec.front();//首元素

vec6.push_back(5);//末尾插入

vec6.pop_back();//删除末尾元素

vec6.resize(10);//调整个数,多删少补

vec6.resize(10,2);

if(!vec6.empty()) cout << "not empty!"<<endl;//判空

vec6.clear();//清空,不再有元素

if(vec6.empty()) cout << "empty!"<<endl;//判空

cout <<vec3.size()<<endl; //10

cout <<vec3.capacity<<endl;// 1

cout <<vec4.size()<<endl;// 0

cout <<vec4.capacity<<endl;// 1

if(vec1 == vec) cout<<"equal!"<<endl; //比较

for(int i = 0; i < vec1.size(); i++)//遍历

cout << vec1[i] <<" ";

cout <<endl;

for(vector<int>::iterator it = vec2.begin(); it != vec2.end(); it++)//遍历

cout << *it <<" ";

12 指针

(1)指针类型转换

类型转换的目的是要逃避编译的类型检查,以使不能完成本任务的模块能凑合着使用。

三种转换方式:a. int * p = reinterpret_cast<int>(&f); b. static_cast<type>(exp) c.const_cast<type>(exp)

(2)指针+整数 = 指针,指针-整数=指针,指针-指针=整数

(3)利用指针遍历数组

int iArray[6];

for(int i = 0; i<6; i++)

iArray[i] = i * 2;

for(int *p = iArray; p<iArray+6; p++)

cout<<p<<": "<<*p<<endl;

(4)指针常量和常量指针

指针常量与指针变量相对,也就是指针的值不能改变。常量指针是指向常量的指针。Const修饰指针则为指针常量,

修饰指向的实体类型,则为常量指针。指针常量不能修改指针值,但可以修改指向的实体;常量指针可以修改指针值,但不可以修改它所指向的实体的值。常量指针常量既不能修改指针值,也不能修改它指向的实体的值。

const int * p = &a; //常量指针

int * const cp = &b;//指针常量

 int const * ip = &b;//指针常量

 const int * const dp = &b; //常量指针常量

13 引用

(1)引用定义时必须初始化 int & rint = someInt;

(2)引用只能改变它所关联的实体的值,但不能改变它本身的值。

(3)int int1 = 5;const & rInt = int1; const 为了阻止rInt 做写操作,但不妨碍实体值被改变,如:int1 = 8;

(4)高级编程多用引用,低级编程多用指针。

《Python3程序开发指南(第二版)》第2章 数据类型 练习 1.修改程序print_unicode.py,以便用户可以在命令行上输入几个单独的单词,并且只有在Unicode字符名包含 阅读详情

相关推荐

JAVAOOP课本一到五章全套练习答案

JAVAOOP中课本一到五章上机示例代码 包括解析 课后哦答案都有

字符指针

字符串常量,字符数据名,字符指针均属于同一种数据类型。 由引号(“ ”)标识,但不是用来初始化数组的字符串,是字符串常量。 字符串常量的类型是指向字符的指针(字符指针char *)。 题外话:对于《两个同样字符组成的字符串常量是不相等的》,编辑器相等的原因是编辑器自动优化的结果。 例如 #include&lt;iostream.h&gt; void main() { char buffer[...

u014769180的博客 1399

PDMS二次开发(十四)——自动插入焊口和计算焊接当量(达因数)

Pipeline Tool增加新功能:自动添加焊口并计算焊接当量(达因数),Pipeline大版本号升为0.9.5。

天堂向左 4582

【C++基础】C++中的字符串

C++支持两种字符串,一种是从C继承过来的C-字符串;另一种是string。下面对它们进行简要的分析。 【C-字符串】 1、 【简介】C-串是以一个全0位(整数0)字节作为结束符的字符序列。该全0字节既是8位的整数0,也是ASCII码的0。 (1)【空间长度】字符串长度加1,因为它末尾有一个0作为结束符 (2)【类型】C-串的类型为char*型 2、 字符指针与字符数组 (1)

378

快速了解Spyder

一 面板介绍菜单栏:放置所有功能工具栏:放置快捷菜单,可以通过菜单栏中的View的Toolbars的复选框来勾选工作区:写代码的地方属性页的标题栏:可以显示当前代码的名字和位置查看栏:查看文件、调试时的对象及变量输出栏:查看程序的输出信息,也可以作为shell终端来输入Python语句状态栏:用来显示当前文件权限、编码,光标指向位置和系统内存二 注释功能注释功能为编写代码很常用功能,下面介绍Spy...

实践求真知 1万+

Fleury算法寻找欧拉回路(mtlab代码详解)

【代码】Fleury算法寻找欧拉回路(mtlab代码详解)

m0_63449998的博客 1301

c/c++学习_字符串处理

c++字符串处理?

代码猴 686

fatal: unable to access ‘https://github.com/Stability-AI/stablediffusion.git/‘解决方案

本文主要介绍在安装 stable-diffusion-webui 时出现的 fatal: unable to access 'https://github.com/Stability-AI/stablediffusion.git/': Failed to connect to github.com port 443 after 21071 ms: Couldn't connect to server 问题的解决方案,希望能对你有所帮助。

水滴的博客 5690

C++期末理论考试查漏补缺

所用教材《C++程序设计教程(修订版)——设计思想与实现》,钱能著。 第1章 C++入门 程序开发过程:编辑——编译——连接——运行 编辑是将C++源程序输入计算机的过程,保存文件名为cpp。 编译是使用系统提供的编译器将源程序cpp生成机器语言的过程,目标文件为obj,由于没有得到系统分配的绝对地址,还不能直接运行。 连接是将目标文件obj转换为...

weixin_30677073的博客 803

【深度学习新浪潮】OpenClaw跟机器人行业有哪些很好的研究结合点?

OpenClaw正通过"AI大脑+机器人肢体"的深度融合,重新定义机器人与人类的交互方式和自主操作能力。近期ROSClaw框架发布、人形机器人集成和空间计算试验等进展,标志着OpenClaw已从概念验证阶段进入实际应用落地期,为机器人行业带来了自然语言控制普及化具身智能平民化和跨平台开发标准化三大变革机遇。

专注:太空算力、AI infra、异构调度、大模型成本工程 238

【中科院一区Top-源码复现】Day-ahead photovoltaic power forecastingwith multi-source temporal-featureconvoluti

【中科院一区Top-源码复现】Day-ahead photovoltaic power forecastingwith multi-source temporal-featureconvoluti

745

第3章 基本数据类型

  第3章 基本数据类型   3.5字符型数据  

weixin_33994444的博客 93

Open3D 球旋转算法(BPA)三维建模【2026最新版】

球旋转算法,博客长期更新,本文最新更新时间为:2026年4月11日。

点云侠的博客 37万+

第3章 Hive数据类型

上篇:数据仓库 Hive安装配置 1、基本数据类型 对于Hive的String类型相当于数据库的varchar类型,该类型是一个可变的字符串,不过它不能声明其中最多能存储多少个字符,理论上它可以存储2GB的字符数。 2、集合数据类型 Hive有三种复杂数据类型ARRAY、MAP 和 STRUCT。ARRAY和MAP与Java中的Array和Map类似,而STRUCT与C语言中的Struct...

weixin_39868387的博客 211

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

第3章Hive数据类型

第3章Hive数据类型 3.1 基本数据类型 表6-1 Hive数据类型 Java数据类型 长度 例子 TINYINT byte 1byte有符号整数 20 SMALINT short 2byte有符号整数 20 INT int 4byte有符号整数 20 BIGINT long 8byte有符号整数 20 BOOLEAN boolean 布尔类型,true或者false TRUE FALSE FLOAT float 单精度浮点数 3.14159 DOUBLE do

数据飓风 972

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain&#39;s apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath(&#39;DeepLearnToolbox&#39;));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand(&#39;state&#39;,0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W&#39;); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand(&#39;state&#39;,0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = &#39;sigm&#39;;%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, &#39;Too big error&#39;);```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand(&#39;state&#39;,0)sae = saesetup([784 100]);sae.ae{1}.activation_function = &#39;sigm&#39;;sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)&#39;)% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;;nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, &#39;Too big error&#39;);```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x&#39;,28,28,60000))/255;test_x = double(reshape(test_x&#39;,28,28,10000))/255;train_y = double(train_y&#39;);test_y = double(test_y&#39;);%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you&#39;ll get around 1.2% errorrand(&#39;state&#39;,0)cnn.layers = { struct(&#39;type&#39;, &#39;i&#39;) %input layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 6, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %sub sampling layer struct(&#39;type&#39;, &#39;c&#39;, &#39;outputmaps&#39;, 12, &#39;kernelsize&#39;, 5) %convolution layer struct(&#39;type&#39;, &#39;s&#39;, &#39;scale&#39;, 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, &#39;Too big error&#39;);```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, &#39;Too big error&#39;);%% ex2 neural net with L2 weight decayrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex3 neural net with dropoutrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex4 neural net with sigmoid activation functionrand(&#39;state&#39;,0)nn = nnsetup([784 100 10]);nn.activation_function = &#39;sigm&#39;; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex5 plotting functionalityrand(&#39;state&#39;,0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = &#39;softmax&#39;; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand(&#39;state&#39;,0)nn = nnsetup([784 20 10]); nn.output = &#39;softmax&#39;; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, &#39;Too big error&#39;);```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

第 3 章 组合数据类型

3.1 序列类型 序列类型支持成员操作符(in)、大小计算函数(len())、分片([]),并且都是可迭代的。 元组(tuple):有序的,包含0个或多个对象引用。元组是固定的不可修改。如果要修改元组可以用List()将其转换为列表。 命名元组(namedtuple):简单记录一下用法。 >>> import collections >>>...

aby9426的博客 190

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

第3章 Hive数据类型

文章目录前言原子数据复杂数据基本类型转换的转换包含关系案例实操hive类型转换hive中 日期格式转化办法: 前言 关系数据库里有表(table),分区,hive里也有这些东西,这些东西在hive技术里称为hive的数据模型 Hive支持两种数据类型,一类叫原子数据类型,一类叫复杂数据类型。 原子数据类型包括数值型、布尔型和字符串类型,具体如下表所示: 原子数据 复杂数据 复杂数据类型包括数组(ARRAY)、映射(MAP)和结构体(STRUCT),具体如下表所示: 基本类型转换的转换包含关系 案例实操

张国荣家的弟弟 1037

[Typescript]第3章-数据类型

代码运行地址:在线运行界面 https://www.typescriptlang.org/zh/play。

Zhao_Ahui的博客 1989

《学习OpenCV3》第3章 了解OpenCV的数据类型

第3章 了解OpenCV的数据类型 1. OpenCV数据类型分类 1.1 基础数据类型分类: 1.2 基础类型概述 2. 深入了解基础类型 2.1 Point类 2.2 Scalar类 2.3 size类 2.4 Rect类 2.5 RotatedRect类 2.6 固定矩阵类 2.7 固定向量类 2.8 复数类 3. 辅助对象 3.1 TermCriteria类 3.2 Range类 3.3 Ptr模板和垃圾收集 3.4 DataType<>模板 4. 工具函数 4.1 函数列表 5. 模板结构

MechMaster 8326

第3章 数据类型

3.1数据类型划分 使用关键字typeof:查看方法 typeof name 或者 typeof(name) 3.1.1简单数据类型(值类型) 四种: 字符串     数字     布尔    未定义    空      String   Number Boolean   unde...

a18740351964的博客 128
上一篇: 若干向量按长短排列
下一篇: response.setHeader()
生无涯
博客等级 码龄16年 62粉丝 73原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值