![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
Circle-C
这个作者很懒,什么都没留下…
展开
-
python写入中文json
Python2 写入带有中文的数据到json文件出错:Json.dump failing with 'must be unicode, not str' TypeErrorwith io.open("test.json",'w',encoding="utf-8") as outfile: json.dump(cards, outfile, ensure_ascii=False)解决:# -*- coding:utf-8 -*-import codecswith code.原创 2021-07-12 20:17:42 · 396 阅读 · 0 评论 -
MongoDB数据库bin目录下缺少mongodump、mongorestore等工具集
在linux要用到mongodump、mongorestore等工具时候发现原来下载的数据库文件缺失很多工具,需要单独下载下载工具集:https://www.mongodb.com/try/download/database-tools将下载的工具集文件bin里的工具都复制到原先下载的mongodb的bin目录下即可...原创 2021-05-01 13:46:45 · 1970 阅读 · 2 评论 -
把Flask项目部署到Linux服务器
软件:第一步:安装Python3环境1.首先安装编译环境(后续需要从python官网获取Python3的源码自己编译pythonyum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make2.从官网下载python3的源码wget https://www.python.org/ftp/python/3.6.2/Pytho.原创 2021-04-20 09:23:19 · 5824 阅读 · 7 评论