Python打开文件可以用open函数
语法:open(filename, mode[, buffering]),返回一个文件对象
mode为文件模式,buffering为缓冲,都是可选参数
Redis安装与配置
Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker.It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries.
Redis作为如今比较火热的NoSQL数据库,在数据的热数据存储和查询方面有着不错的应用,这篇文章将介绍Redis的安装和配置信息。
Python基础-异常处理(except)
Posted on
|
In
Python
什么是异常?
当程序运行时发生了某些错误,这时就会引发异常。Python中用异常对象(exception object)来表示异常情况,如果异常对象并没有被处理,程序就会终止,并发出回溯(traceback)显示错误信息