python数据类型详解报告.pdfVIP

  • 3
  • 0
  • 约9.77千字
  • 约 9页
  • 2021-02-02 发布于天津
  • 举报
python 数据类型详解 目录 1、字符串 2 、布尔类型 3 、整数 4 、浮点数 5 、数字 6 、列表 7 、元组 8 、字典 9 、日期 1、字符串 1.1、如何在 Python 中使用字符串 a、使用单引号 () 用单引号括起来表示字符串,例如: str=this is string; print str; b、使用双引号 () 双引号中的字符串与单引号中的字符串用法完全相同,例如: str=this is string; print str; c、使用三引号 () 利用三引号,表示多行的字符串,可以在三引号中自由的使用单引号和双引号,例如: str=this is string this is pythod string this is string print str; 2、布尔类型 bool=False; print bool; bool=True; print bool; 3、整数 int=20; print int; 4、浮点数 float=2.3; print float; 5、数字 包括整数、浮点数。 5.1 、删除数字对象引用,例如: a=1; b=2;

文档评论(0)

1亿VIP精品文档

相关文档