摘要: 阅读全文
posted @ 2020-05-30 23:49 月夜_1 阅读(342) 评论(0) 推荐(0) 编辑
摘要: replace生成了新的对象,对原始对象没有改动。 阅读全文
posted @ 2020-05-30 23:32 月夜_1 阅读(353) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 23:09 月夜_1 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 21:45 月夜_1 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 系列解包赋值时,相同value的对象赋值给两个变量时,实际对象只有一个。 阅读全文
posted @ 2020-05-30 21:22 月夜_1 阅读(164) 评论(0) 推荐(0) 编辑
摘要: a=True,进行上述逻辑或运算时,不计算40/0,产生短路现象。 阅读全文
posted @ 2020-05-30 20:37 月夜_1 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 20:31 月夜_1 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 20:22 月夜_1 阅读(537) 评论(0) 推荐(0) 编辑
摘要: float(3)结果3.0。原对象"3"未改变,生成新的对象,value=3.0,type=float a=a+1, a指向的对象值为1,加1操作后生成新的对象,新的对象地址再赋值给a。原来对象被回收。 阅读全文
posted @ 2020-05-30 20:12 月夜_1 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 18:06 月夜_1 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一个对象(内存块)包括: ID: type:有很多种,基本内置数据类型是子集 Value 阅读全文
posted @ 2020-05-30 17:33 月夜_1 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 17:24 月夜_1 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 12:12 月夜_1 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-30 10:30 月夜_1 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 举例 对象:标识(ID)对应内存块的 a=3,是把“3”对应的内存块的地址赋给a变量 阅读全文
posted @ 2020-05-30 10:03 月夜_1 阅读(153) 评论(0) 推荐(0) 编辑