摘要:
根据条件查找数据 ----------------------- 通过条件查询: db.foo.find( { x : 77 } , { name : 1 , x : 1 } ) ----------------------------- db.foo.find(...).count() db.foo.find(...).limit(n) 根据条件查找数据并返回... 阅读全文
摘要:
# encoding=utf-8 import pandas as pd from pylab import mpl import matplotlib.pyplot as plt from matplotlib import font_manager #在数据挖掘前一个数据分析、筛选、清理的多功能工具 #将excel读取并转换为pandas的DataFrame #pd.read_csv读取... 阅读全文
摘要:
bytes对象只负责以二进制字节序列的形式记录所需记录的对象,至于该对象到底表示什么(比如到底是什么字符)则由相应的编码格式解码所决定 Python2 中 Python3 中 bytes是Python 3中特有的,Python 2 里不区分bytes和str。 python3中:str 使用enco 阅读全文
摘要:
Scrapy提供了log功能,可以通过 logging 模块使用。 可以修改配置文件settings.py,任意位置添加下面两行,效果会清爽很多。 Log levels Scrapy提供5层logging级别: CRITICAL - 严重错误(critical) ERROR - 一般错误(regul 阅读全文