摘要: 查看文件当前权限: hacker@hmtx-star:/home$ ll total 12 drwxr-xr-x 3 root root 4096 4月 16 09:50 ./ drwxrwxrwx 24 root root 4096 7月 23 16:41 ../ drwxr--r-- 55 ha 阅读全文
posted @ 2020-09-15 17:05 yin_zhaozhao 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 版本信息: python==3.6 django==1.11.17 djangorestframework==3.11.0 1.安装 pip install django-rest-swagger 版本信息: django-rest-wagger==2.2.0 2.配置 2.1.在settings. 阅读全文
posted @ 2020-07-16 14:18 yin_zhaozhao 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: dl = [ { "viewTimes": 236, "topTimes": 49, "stepsNum": 76, "collTimes": 321 }, { "viewTimes": 236, "topTimes": 47, "stepsNum": 58, "collTimes": 344 }, 阅读全文
posted @ 2020-07-13 13:05 yin_zhaozhao 阅读(135) 评论(0) 推荐(0) 编辑
摘要: View.py from ast import literal_eval import snowflake.client # 雪花算法存id from rest_framework.response import Response from rest_framework.views import A 阅读全文
posted @ 2020-05-27 11:44 yin_zhaozhao 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 记一次:ORM查询到数据后,返回前端前,对数据做出修改 本次修改是直接在序列化中作出的修改 from app01.models import BusinessOpportunities, UserRecommendSetting class BusinessOpportunitiesSerializ 阅读全文
posted @ 2020-05-21 14:09 yin_zhaozhao 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 查询一条数据: 模型名称.objects.get(字段=) BusinessInfo.objects.get(id=006f1884-95a4-11ea-a294-00f1f3f8013d) 模糊查询多条数据:filter() cty = request.GET.get('country') Bus 阅读全文
posted @ 2020-05-20 15:19 yin_zhaozhao 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1、安装: sudo apt-get install mysql-server mysql-common mysql-client sudo /etc/init.d/mysql restart可能出现的问题: “dpkg 被中断,您必须手工运行 sudo dpkg –configure -a解决此问 阅读全文
posted @ 2020-05-13 17:28 yin_zhaozhao 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 1.实现效果: 1.1.代码 <div class="s_center"> <span style="letter-spacing: 10px;">居中文字</span> <!--letter-spaciing:设置文字间间距--> </div> <style scoped> .s_center{ 阅读全文
posted @ 2020-05-12 18:17 yin_zhaozhao 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1.复制https://element.eleme.cn/#/zh-CN/component/form代码 2.粘贴 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ru 阅读全文
posted @ 2020-05-12 17:49 yin_zhaozhao 阅读(1891) 评论(0) 推荐(0) 编辑
摘要: Ubuntu系统火狐浏览器中,鼠标选择的内容会被自动删除IBus(英文全称为Intelligent Input Bus),是GNU/Linux和类UNIX操作系统下的以GPL协议分发源代码的开源免费多语言输入法框架。 问题的原因是Ubuntu 中ibus-setup输入法框架的设置问题。在终端输入命 阅读全文
posted @ 2020-05-12 17:27 yin_zhaozhao 阅读(655) 评论(0) 推荐(0) 编辑