装饰:装饰:用装饰器从字面上装饰终端-源码

上传者: 42124497 | 上传时间: 2021-02-06 19:07:28 | 文件大小: 36KB | 文件类型: ZIP
装饰:装饰者的元存储库 抽象 该项目鼓励探索Python中装饰器的局限性。 尽管装饰器可能是初学者的新手,但它们是该语言的一个非常有用的功能。 它们可以类似于Lisp Macros,但无需更改AST。 这些软件包中的@animated装饰器是@animated和@writing 。 该存储库是从头开始构建的,仅使用Python的标准库即可,无需依赖! 例子 动画的 用作装饰器并与上下文管理器混合 与嵌套上下文管理器一起使用 写作 另一个名为项目使用装饰包-基本上是的命令行界面。 只需添加3行代码即可使用装饰器@writing! 该行为是一台类似复古打字的计算机。 看看很棒的效果: 在我有关

文件下载

资源详情

[{"title":"( 37 个子文件 36KB ) 装饰:装饰:用装饰器从字面上装饰终端-源码","children":[{"title":"decorating-master","children":[{"title":"MANIFEST.in <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"codecov.yml <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"decorating","children":[{"title":"animation.py <span style='color:#111;'> 10.67KB </span>","children":null,"spread":false},{"title":"color.py <span style='color:#111;'> 1.59KB </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"general.py <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"monitor.py <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"asciiart.py <span style='color:#111;'> 3.47KB </span>","children":null,"spread":false},{"title":"debugging.py <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false},{"title":"decorator.py <span style='color:#111;'> 4.49KB </span>","children":null,"spread":false},{"title":"stream.py <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"requirements.txt <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.56KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 3.02KB </span>","children":null,"spread":false},{"title":".pre-commit-config.yaml <span style='color:#111;'> 300B </span>","children":null,"spread":false},{"title":"TODO <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"source","children":[{"title":"description.rst <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"conf.py <span style='color:#111;'> 5.22KB </span>","children":null,"spread":false},{"title":"decorating.rst <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"index.rst <span style='color:#111;'> 484B </span>","children":null,"spread":false}],"spread":false},{"title":"requirements.txt <span style='color:#111;'> 31B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 614B </span>","children":null,"spread":false}],"spread":true},{"title":"tests","children":[{"title":"test_color.py <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"test_monitor.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"test_debugging.py <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"__main__.py <span style='color:#111;'> 386B </span>","children":null,"spread":false},{"title":"test_decorator.py <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"test_general.py <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"test_animation.py <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":".coveragerc <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"CHANGELOG <span style='color:#111;'> 2.87KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明