python内置库有哪些_您知道Python有内置数据库吗?

Python中存在内置数据库,这一事实可能鲜为人知。本文将带你了解Python的这一特性,揭示其内部如何提供数据库支持。
摘要由CSDN通过智能技术生成

python内置库有哪些

重点 (Top highlight)

If you are a software developer, I believe you must know or even have used an extremely light-weighted database — SQLite. It has almost all the features you need as a relational database, but everything is saved in a single file. In the official site, here are some scenarios that you could use SQLite.

如果您是软件开发人员,我相信您必须知道或什至使用过轻量级的数据库SQLite。 它具有关系数据库所需的几乎所有功能,但是所有内容都保存在一个文件中。 在官方站点中,这里有一些您可以使用SQLite的方案。

  • Embedded devices and IoT

    嵌入式设备和物联网
  • Data Analysis

    数据分析
  • Data Transferring

    资料传输
  • File archive and/or data container

    文件档案和/或数据容器
  • Internal or temporary databases

    内部或临时数据库
  • Stand-in for an enterprise database during demos or testing

    在演示或测试期间替代企业数据库
  • Education, training and testing

    教育,培训和测试
  • Experimental SQL language extensions

    实验性SQL语言扩展

There are more reasons that you may want to use SQLite, please check out the documentation.

您可能有更多原因想要使用SQLite,请查阅文档。

Most importantly, SQLite is actually built-in as a Python library. In other words, you don’t need to install any server-side/client-side software, and you don’t need to keep something running as a service, as long as you imported the library in Python and start coding, then you have a relational database management system!

最重要的是, SQLite实际上是作为Python库内置的 。 换句话说,您不需要安装任何服务器端/客户端软件,也不需要保持某些东西作为服务运行,只要您使用Python导入了该库并开始编码,那么您就可以有一个关系数据库管理系统!

导入和使用 (Import and Usage)

Image for post
Photo by CopyrightFreePictures on Pixabay
照片由 CopyrightFreePictures· Pixabay上的 免费照片

When we say “built-in”, it means that you don’t even need to run pip install to acquire the library. Simply import it by:

当我们说“内置”时,这意味着您甚至不需要运行pip install即可获取该库。 只

  • 1
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值