zoukankan      html  css  js  c++  java
  • "Batteries-included" philosophy of Python

    "Batteries-included" philosophy

    python版本,含有丰富和多功能的标准库。

    不需要用户再去单独下载。

    https://www.python.org/dev/peps/pep-0206/#batteries-included-philosophy

    The Python source distribution has long maintained the philosophy of "batteries included" -- having a rich and versatile standard library which is immediately available, without making the user download separate packages. This gives the Python language a head start in many projects.

    However, the standard library modules aren't always the best choices for a job. Some library modules were quick hacks (e.g. calendar, commands), some were designed poorly and are now near-impossible to fix (cgi), and some have been rendered obsolete by other, more complete modules (binascii offers the same features as the binhex, uu, base64 modules). This PEP describes a list of third-party modules that make Python more competitive for various application domains, forming the Python Advanced Library.

    The deliverable is a set of scripts that will retrieve, build, and install the packages for a particular application domain. The Python Package Index now contains enough information to let software automatically find packages and download them, so the time is ripe to implement this.

    Currently this document doesn't suggest removing modules from the standard library that are superseded by a third-party module. That's difficult to do because it entails many backward-compatibility problems, so it's not worth bothering with now.

    Please suggest additional domains of interest.

    三方

    https://www.jianshu.com/p/eb89e75d8ad0

    Python有个哲学观:Batteries-included,从程序员的视角来看:Batteries-included指包含几乎所有可以用来实际干活儿的工具,不用再自己开发各种库了(不用造轮子)。
    Batteries-included具体体现在,Python不仅拥有丰富的标准库,还拥有数量巨大的第三方软件包,这些软件包托管在Python官方的代码库PyPI

    PyPI

    https://www.zhihu.com/question/24710451

    这个确实不太好翻译。Batteries included 这个词本意是指“自带电池”。在题目中这个语境的用法源自 Python 编程语言,指这个语言的官方发行版 CPython 自带了相当齐全的软件库,拿来就可以直接写程序,一般不需要再去安装额外的库,类似买一个电动玩具里面自带了电池一样,拆开后简单

  • 相关阅读:
    双日历时间段选择控件—daterangepicker(汉化版)
    vue elementui table表格展开行每次只展开一行
    vue-pdf PDF文件预览
    async await
    vuex发送axios请求
    jq调用浏览器下载文件 window.open()
    禁止页面右键、选择、F12操作
    vue 点击一条消息跳转相应的页面且对应相应的大模块和办理状态
    vue-infinite-scroll 滚动加载下一页
    填写流程当前登录人可以填写除自己可填项外还可看到他前面经办人相关填写的内容,且经办人后面的不可见
  • 原文地址:https://www.cnblogs.com/lightsong/p/13964861.html
Copyright © 2011-2022 走看看