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](https://i-blog.csdnimg.cn/blog_migrate/044d319a0cc5436e4522541ad6e34775.png)
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
即可获取该库。 只