摘要: 引言 Python的内置常量不多,只有6个,分别是True、False、None、NotImplemented、Ellipsis、__debug__ 一.True 1.True是bool类型用来表示的真值常量 2.对常量True进行任何赋值操作都会抛出语法错误 二.False 1.False是boo 阅读全文
posted @ 2017-12-05 15:43 土耳其大骗子 阅读(422) 评论(0) 推荐(0)
摘要: 官方文档 3.对应切片的3个属性start、stop、step,slice函数也有3个对应的参数start、stop、step,其值会直接赋给切片对象的start、stop、step 阅读全文
posted @ 2017-12-05 13:51 土耳其大骗子 阅读(916) 评论(0) 推荐(0)
摘要: 官方文档 Open file and return a corresponding file object. If the file cannot be opened, an OSError is raised. file is a path-like object giving the pathn 阅读全文
posted @ 2017-12-04 20:21 土耳其大骗子 阅读(1347) 评论(0) 推荐(0)