08 2022 档案

摘要:在python脚本中调用其他程序,或执行命令行指令,可以用os.system,os.popen,subprocess.popen这三种方式。这三种方式所适用的情况各不相同。区别在于调用程序后执行的操作,函数返回的是调用程序的输出,还是程序运行的状态码。 1.os.system 需要等待子进程执行完再 阅读全文
posted @ 2022-08-31 10:30 sugoi 阅读(2164) 评论(0) 推荐(0) 编辑
摘要:一、问题 django 同一接口post请求失败,get请求成功,原因是django post接口有csrf校验 curl -H "Content-Type: application/json" -X POST -d '{"id":1}' http://200.200.169.135:4666/mo 阅读全文
posted @ 2022-08-23 11:51 sugoi 阅读(151) 评论(0) 推荐(0) 编辑
摘要:一、问题 运行django报错,但我并未使用这个sql服务 django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.6.20). 二、解决 将setting.py里面的databa 阅读全文
posted @ 2022-08-23 10:42 sugoi 阅读(910) 评论(0) 推荐(0) 编辑
摘要:先简单记载一下 <el-table ref="tableSort" v-loading="listLoading" :data="list" :element-loading-text="elementLoadingText" :height="height" @selection-change=" 阅读全文
posted @ 2022-08-05 16:01 sugoi 阅读(52) 评论(0) 推荐(0) 编辑
摘要:记录一下script结构 <script> import { getList, doDelete } from '@/api/table' //导入js方法 import TableEdit from './components/TableEdit' //导入vue文件,展示弹窗形式 export 阅读全文
posted @ 2022-08-05 11:09 sugoi 阅读(500) 评论(0) 推荐(0) 编辑
摘要:一、展示 二、代码展示 <el-table-column show-overflow-tooltip label="状态"> <template #default="{ row }"> <el-tooltip :content="row.status" class="item" effect="da 阅读全文
posted @ 2022-08-05 11:01 sugoi 阅读(342) 评论(0) 推荐(0) 编辑
摘要:1、适用版本 django3就不要尝试了,不支持 2、安装模块 pip install django-rest-swagger 3、修改setting.py INSTALLED_APPS = [ ... 'rest_framework_swagger', ] SWAGGER_SETTINGS = { 阅读全文
posted @ 2022-08-03 11:29 sugoi 阅读(323) 评论(0) 推荐(0) 编辑
摘要:1、将所有需要的依赖写入文件,一个依赖占用一行 2、批量执行pip install -r requirements.txt 阅读全文
posted @ 2022-08-02 20:44 sugoi 阅读(119) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示