摘要: 表示组的方式: 列表: >>> type([1,2,3,4]) <class 'list'> >>> type([["hello"],["world"],[1,9,True,False]])<class 'list'> 列表基本操作方法:(与字符串截取相似) >>> ["新月打击","苍白之暴"," 阅读全文
posted @ 2018-03-09 17:21 大神是我啊 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Alt+p :上一条命令 Alt+n:下一条命令 基本数据类型:int(整数) float(浮点) 输入 >>> type(2/2)输出 <class 'float'>>>> type(2//2)<class 'int'> >>> 2/21.0>>> 2//21>>> 1//20>>> 1/20.5 阅读全文
posted @ 2018-03-09 11:33 大神是我啊 阅读(164) 评论(0) 推荐(0) 编辑