摘要: 三 字符串 msg='hello world' print(msg[0]) print(msg[-1]) msg='hello world' print(msg[0:5]) print(msg[4:8:2]) print(msg[0:]) msg='hello world' print(msg[0: 阅读全文
posted @ 2018-07-03 22:36 天天吃饭团 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 一 引子 1 什么是数据? x=10,10是我们要存储的数据 2 为何数据要分不同的类型 数据是用来表示状态的,不同的状态就应该用不同的类型的数据去表示 3 数据类型 数字(整形,长整形,浮点型,复数) 字符串 字节串:在介绍字符编码时介绍字节bytes类型 列表 元组 字典 集合 4 按照以下几个 阅读全文
posted @ 2018-07-03 21:58 天天吃饭团 阅读(206) 评论(0) 推荐(0) 编辑