廖雪锋笔记1---python变量类型



整型:a/b a//b a%b

浮点型:.2 

字符串: "" '' r"" r''
'''...''' r'''...''''
变量值共享:写时复制 NULL型:Null 布尔型:True False not Null --->True True-------->True False------->False not 0------->True not ""------>True not ''------>True not 0.0----->True
1==True ---->True
0==False---->True

类型判断: type(a) 输入与输出: printf(a,b,c,d) input(
"xx")
原文地址:https://www.cnblogs.com/zengkefu/p/5568729.html