python
cubeThreeOne
科班出身,继续努力学习
展开
-
python中存取json和显示
1 存:遍历服务器中的所有文件存取 Postgresql中的字段filelist,类型为text filepath= '/data/'+request.POST.get('filepath') # 获取到路径 filesize, fileCount = get_server_file_total_size(filepath) # 获取文件中的所有文件的大小 metafile = ...原创 2018-04-24 21:26:01 · 1240 阅读 · 0 评论 -
python语言,Django和Vue的前后端项目
工具:Pycharm 2018.1.1 professional Edition 采用语言、框架及数据库:python、vue、Django、Bootstrap、postgreSQL10 项目搭建构成:backend是后端编写接口部分、frontend是vue前台部分、learndjango是Django框架一体编写前后台代码 该项目目前在:github网站 s 目前该前后端项目搭建完毕...原创 2019-07-04 12:45:56 · 666 阅读 · 0 评论 -
Python3.6 服务器文件操作代码
前提是要引入以下依赖: import os import shutil from django.http import JsonResponse 1python中存取json和显示中的相关函数: def get_server_file_total_size(start_path): # 函数获取文件中的所有文件的大小 total_size = 0 count...原创 2019-07-10 16:37:04 · 279 阅读 · 0 评论