进入github,输入python 点击see topic 进入python流行的库  链接 https://github.com/topics/python

1、QuantLib 金融衍生品数据库

2、schedule定时任务 https://github.com/dbader/schedule

3、Tenacity。Python重试从此无比简单  https://github.com/jd/tenacity/releases?after=v1.2.2

4、yagmail 发邮件的库 https://github.com/kootenpv/yagmail

5、Tornado web server  Tornadois a Python web framework andasynchronous networking library, originally developed atFriendFeed. By using non-blocking network I/O, Tornadocan scale to tens of thousands of open connections, making it ideal forlong polling,WebSockets, and otherapplications that require a long-lived connection to each user.

tornado是一个Python Web框架的异步网络库,最初是在FriendFeed。通过使用非阻塞的网络I/O,tornadocan规模对打开的连接数以万计,使其成为理想的长轮询WebSockets,和其他应用程序需要一个长连接到每个用户。  https://github.com/tornadoweb/tornado

6、

库的使用

3、defaultdict库:python中defaultdict方法的使用

https://blog.csdn.net/real_ray/article/details/17919289

2、abc模块  以后有需要再学习

资料:http://blog.csdn.net/taiyangdao/article/details/78199623

https://docs.python.org/3/library/abc.html

http://blog.csdn.net/grey_csdn/article/details/77110667

http://blog.csdn.net/qijiqiguai/article/details/77269839

1、Munch库

import munch
b=Munch()
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-7-fa393e434470>", line 1, in <module>
b=Munch()
NameError: name 'Munch' is not defined
from munch import *
b=Munch()
b.hello='world'
b['hello']
Out[11]: 'world'
b['hello']+='!'
b.hello
Out[13]: 'world!'
b.foo=Munch(lol=True)
b.foo.lol
Out[15]: True
b.foo is b['foo']
Out[16]: True
b
Out[17]: Munch({'hello': 'world!', 'foo': Munch({'lol': True})})
b['yang']='qie'
b
Out[19]: Munch({'hello': 'world!', 'foo': Munch({'lol': True}), 'yang': 'qie'})
b.keys()
Out[20]: dict_keys(['hello', 'foo', 'yang'])
b.update({'ponies':'are pretty!'},hello=43)
b
Out[22]: Munch({'hello': 43, 'foo': Munch({'lol': True}), 'yang': 'qie', 'ponies': 'are pretty!'})
[(k,b[k]) for k in b]
Out[23]:
[('hello', 43),
('foo', Munch({'lol': True})),
('yang', 'qie'),
('ponies', 'are pretty!')]
'The {knights} who say {ni}'.format(**Munch(knights='lolcats',ni='can haz'))
Out[24]: 'The lolcats who say can haz'
b=Munch(foo=Munch(lol=True),hello=42,ponies='are pretty!')
b
Out[26]: Munch({'foo': Munch({'lol': True}), 'hello': 42, 'ponies': 'are pretty!'})
import json
json.dumps(b)
Out[28]: '{"foo": {"lol": true}, "hello": 42, "ponies": "are pretty!"}'
undefined=object()
b=DefaultMunch(undefined,{'hello':'world'})
b
Out[32]: DefaultMunch(<object object at 0x00000167253C5430>, {'hello': 'world'})
b()
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-33-9c619ddbd09b>", line 1, in <module>
b()
TypeError: 'DefaultMunch' object is not callable
b.hello
Out[34]: 'world'
b.foo
Out[35]: <object at 0x167253c5430>
b.foo()
Traceback (most recent call last):
File "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-36-e1521d9f21b2>", line 1, in <module>
b.foo()
TypeError: 'object' object is not callable
b.foo is undefined
Out[37]: True
undefined=object()
b=DefaultMunch.fromDict({'recursively':{'nested':'value'}},undefined)
b.recursively
Out[40]: DefaultMunch(<object object at 0x00000167253C5420>, {'nested': 'value'})
b.recursively.nested
Out[41]: 'value'
b.recursively.foo
Out[42]: <object at 0x167253c5420>

最新文章

  1. 报错:MySQL check the manual that corresponds to your MySQL server version for the right syntax
  2. python3的编码问题
  3. C - NP-Hard Problem
  4. 代替Reflection(反射)的一些方法
  5. log4net详解(转载)
  6. Android ContentProvider的实现
  7. MYI 文件内容
  8. div 背景色设置_DIV背景颜色设置
  9. TextField的文字距左边框的距离偏移
  10. js 检测浏览器
  11. JS框架设计读书笔记之-函数
  12. 爬虫新手学习2-爬虫进阶(urllib和urllib2 的区别、url转码、爬虫GET提交实例、批量爬取贴吧数据、fidder软件安装、有道翻译POST实例、豆瓣ajax数据获取)
  13. java 操作Excel表格
  14. 请求http页面的相关过程
  15. 100-days: twenty-eight
  16. 35、concurrent.futures模块与协程
  17. 谷歌浏览器chrome的vuejs devtools 插件的安装
  18. hdu4787 AC自动机加分块
  19. Windows2008R2安装Exchange&#160;2010前必须要做的准备工作
  20. Oracle Applications Documentation

热门文章

  1. web.xml CharacterEncodingFilter
  2. CVE-2019-0708 漏洞分析及相关测试
  3. 提升Windows系统舒适度软件
  4. 【剑指Offer】面试题26. 树的子结构
  5. Gym - 101190F Foreign Postcards (期望dp)
  6. 用 Python 编写一个天气查询应用 pyqt5
  7. 二十七、SAP中通过以字段的形式输出内容
  8. 《新标准C++程序设计》4.1(C++学习笔记12)
  9. 框架基础学习之--详解web+maven+spring+mybatis+struts框架文件夹作用
  10. CF1141D Colored Boots