首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

C/C++语言 常用头文件及函数

#include <assert.h>    //设定插入点 #include <ctype.h>     //字符处理 #include <errno.h>     //定义错误码 #include <float.h>     //浮点数处理 #include <iso646.h> //对应各种运算符的宏 #include <limits.h>    //定义各种数据类型最值的常量 #include <locale.h>    //定义本地化C函数 #include <math.h>     //定义数学函数 #include <setjmp.h> //异常处理支持 #include <signal.h> //信号机制支持 #include <stdarg.h> //不定参数列表支持 #include <stddef.h> //常用常量 #include <stdio.h>     //定义输入/输出函数 #include <stdlib.h>    //定义杂项函数及内存分配函数 #include <string.h>    //字符串处理 #include <time.h>     //定义关于时间的函数 #include <wchar.h>     //宽字符处理及输入/输出 #include <wctype.h>    //宽字符分类

00

MySQL中int、bigint、smallint 和 tinyint的区别详细介绍

最近使用mysql数据库的时候遇到了多种数字的类型,主要有int,bigint,smallint和tinyint。其中比较迷惑的是int和smallint的差别。今天就在网上仔细找了找,找到如下内容,留档做个总结: 使用整数数据的精确数字数据类型。 bigint 从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型数据(所有数字)。存储大小为 8 个字节。 P.S. bigint已经有长度了,在mysql建表中的length,只是用于显示的位数 int 从 -2^31 (-2,147,483,648) 到 2^31 – 1 (2,147,483,647) 的整型数据(所有数字)。存储大小为 4 个字节。int 的 SQL-92 同义字为 integer。 smallint 从 -2^15 (-32,768) 到 2^15 – 1 (32,767) 的整型数据。存储大小为 2 个字节。 tinyint 从 0 到 255 的整型数据。存储大小为 1 字节。

03

Python随记(2)数据类型(小数,分数) 分支循环

整形(int) 布尔类型(bool) 浮点型(float,e记法1.5e11=1.5*10的11次方) 字符串(str)类型的获取**type()**函数type('abc') <class 'str'> **isinstance()**函数isinstance('abc',str) >>True 扩展: s 为字符串 s.isalnum() 所有字符都是数字或者字母,为真返回 True,否则返回 False。 s.isalpha() 所有字符都是字母,为真返回 True,否则返回 False。 s.isdigit() 所有字符都是数字,为真返回 True,否则返回 False。 s.islower() 所有字符都是小写,为真返回 True,否则返回 False。 s.isupper() 所有字符都是大写,为真返回 True,否则返回 False。 s.istitle() 所有单词都是首字母大写,为真返回 True,否则返回 False。 s.isspace() 所有字符都是空白字符,为真返回 True,否则返回 False常用操作符:x%y 求x除以y的余数; x//y 地板除取小的整数(3//2==1); abs(x)绝对值; dirmod(x,y)=(x//y,x%y); pow(x,y)x的y次方; complex(re,im)复数(实部,虚部); a=a+1 可化简为 a += 1 c = c*5 c *=5优先级:幂运算 >:正负号>算术操作符>比较操作符>逻辑运算符(not>and>or) not 1 or 0 and 1 or 3 and 4 or 5 and 6 or 7 and 8 and 9 ==4 ;(not 1) or (0 and 1) or (3 and 4) or (5 and 6) or (7 and 8 and 9)=0 or 0 or 4 or 6 or 9= 4

02
领券