随笔分类 -  Python问题分析

摘要:一、python assert的作用: 根据Python 官方文档解释(https://docs.python.org/3/reference/simple_stmts.html#assert), "Assert statements are a convenient way to insert d 阅读全文
posted @ 2019-11-10 21:18 Mr_Riven 阅读(201) 评论(0) 推荐(0)
摘要:去除点的方法: 阅读全文
posted @ 2019-10-21 01:15 Mr_Riven 阅读(181) 评论(0) 推荐(0)
摘要:问题: 1. 2. 3. 在进行判断时or永远返回ture,在使用and时完全没有问题 1.and示例 2. 解决方法: 加上()变成元祖 阅读全文
posted @ 2019-10-20 22:36 Mr_Riven 阅读(276) 评论(0) 推荐(0)