
Python
Shelley Zhao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
搭建django框架并连接mongodb数据库
一、环境基本步骤 1、使用pycharm的专业版 新建一个django项目 https://www.jianshu.com/p/f5a60bd0bc40 2、安装包 pipinstallmongoengine 二、在Django中配置 1、在settings.py中进行配置 如果原先没连接MySQL数据库,就把默认的设置为空,如果有可以保留,也不会不影响 原先没有连接其他数据库...转载 2019-04-17 10:55:43 · 2869 阅读 · 1 评论 -
python文件操作:pickle模块多次dump后出现的读取问题
在学习pickle的过程中遇到了多次dump后的读取问题,在网上找到如下解决办法: import pickle a=1 b=2 c=3with open("ceshi.txt","wb") as f: pickle.dump(a,f) pickle.dump(b,f) pickle.dump(c,f) f=open("ceshi.txt","rb") with...转载 2018-05-25 10:01:16 · 4631 阅读 · 0 评论 -
Python连接oracle数据库
1. 下载oracle数据库cx_Oracle Python一个官方网站PyPI,上面有丰富的模块。cx_Oracle就可以在PyPI中下载。打开PyPI的网址https://pypi.python.org/pypi,在里面搜索cx_Oracle,即可找到该模块,其下载地址为http://cx-oracle.sourceforge.net/。 找到对应Python3.7版本的whl文件,...原创 2019-05-06 17:44:43 · 2266 阅读 · 0 评论