python
Mr_Hagrid
这个作者很懒,什么都没留下…
展开
-
大论文实验参考资料笔记
matplot http://liam0205.me/2014/09/11/matplotlib-tutorial-zh-cn/ Ipython http://kochiya.me/www/posts/Ipython!.html numpy http://blog.csdn.net/ikerpeng/article/details/20077439 python3.0 http://w原创 2015-08-21 17:59:25 · 553 阅读 · 0 评论 -
SQLAlchemy操作MariaDB笔记之二
回顾创建表格的代码:from sqlalchemy import create_enginefrom sqlalchemy import String, Integer, Columnfrom sqlalchemy.ext.declarative import declarative_base#声明Maria引擎engine = create_engine("mysql://root:myp原创 2015-09-28 14:39:06 · 2498 阅读 · 0 评论 -
gevent学习笔记
gevent概念和使用例子: http://www.liaoxuefeng.com/wiki/001374738125095c955c1e6d8bb493182103fac9270762a000/001407503089986d175822da68d4d6685fbe849a0e0ca35000gevent 安装 安装环境为 centOS7.0 获取软件包wget http://pypi.pyt原创 2015-09-25 10:31:30 · 960 阅读 · 0 评论 -
Python自带日志模块
请直接看这篇文章: http://python.jobbole.com/82221/默认情况下(logging.basicConfig配置时没指定filename),logging将日志打印到屏幕,日志级别为WARNING; 日志级别大小关系为:CRITICAL > ERROR > WARNING > INFO > DEBUG > NOTSET,当然也可以自己定义日志级别 filemode:原创 2015-10-13 18:32:48 · 1931 阅读 · 0 评论 -
Python中的时间和日期
time模块由底层C库提供与时间相关的函数import time#从纪元开始的秒数time.time()#15秒之后的秒数later=time.time()+15#格式化输出当前时间time.ctime()#格式化输出15秒之后的时间time.ctime(later)将time对象转换为struct_time对象time.gmtime()#返回结果:time.struct_tim原创 2015-10-09 14:53:45 · 649 阅读 · 0 评论 -
Python标准库之collections.Counter
collections模块Counter 统计关键字计数初始化方式In [3]: collections.Counter(['a','b','b','c','c','c'])Out[3]: Counter({'c': 3, 'b': 2, 'a': 1})In [4]: collections.Counter('abbccc')Out[4]: Counter({'c': 3, 'b': 2, '原创 2015-10-10 17:28:56 · 2753 阅读 · 0 评论