上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页
摘要: 01 python 基础 1.1 列表常用方法 # 1. append 用于在列表末尾追加新的对象 a = [1,2,3] a.append(4) # the result : [1,2,3,4] ​ # 2. count方法统计某个元素在列表中表现得次数 a = ['aa','bb','cc',' 阅读全文
posted @ 2020-11-12 20:26 高登汗 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 0.路径页面图 </img> 1.课程路径接口开发 1.1 course/urls.py添加路由 router.register(r'path', views.PathViewSet) 1.2 course/serializers.py写序列化器 from rest_framework import 阅读全文
posted @ 2020-11-11 11:51 高登汗 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 0.路径表关系梳理 1.路径表 # 路径表 class Path(Base): title = models.CharField('路径名', max_length=16) img = models.ImageField('路径图片', upload_to='path', null=True) de 阅读全文
posted @ 2020-11-11 11:46 高登汗 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.订单支付回调接口 1.1 goods/urls.py中添加路由 urlpatterns = [ path('peyment/', views.PayMentView.as_view()), # /goods/peyment/ ] 1.2 goods/views.py中写视图函数 from use 阅读全文
posted @ 2020-11-11 11:40 高登汗 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 1.创建订单并生成支付链接接口 1.1 goods/urls.py中注册路由 urlpatterns = [ path('getpayurl/', views.PayUrlView.as_view()), # /goods/getpayurl/ ] 1.2 goods/views.py 中写视图函数 阅读全文
posted @ 2020-11-11 11:39 高登汗 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 1.docker安装ES 1.拉取docker镜像 # 从仓库拉取镜像 sudo docker image pull delron/elasticsearch-ik:2.4.6-1.0 2.使用docker安装ES docker run -d -p 9200:9200 -p 9300:9300 -- 阅读全文
posted @ 2020-11-11 11:24 高登汗 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.docker基本使用 1.1 镜像常用管理命令 [root@linux-node4 diff]# docker help # 查看docker帮助 [root@linux-node4 diff]# docker image --help # 查看 docker中 镜像相关帮助 [root@lin 阅读全文
posted @ 2020-11-11 11:20 高登汗 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.docker基本原理 https://www.cnblogs.com/xiaonq/p/10241045.html 2.ubuntu安装docker 2.1 安装docker # 1.卸载旧版本 sudo apt-get remove docker docker-engine docker.io 阅读全文
posted @ 2020-11-11 11:18 高登汗 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1.基本介绍 前后端不分离:https://www.cnblogs.com/xiaonq/p/12363589.html 1.1 安装 pip install drf-haystack # django的开源 搜索框架(python语音写的,搜索框架可以使用其他语音的搜索引擎)pip install 阅读全文
posted @ 2020-11-11 11:02 高登汗 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.倒排索引 搜索引擎中存储的是倒排索引,就是分好的词,和词语文章的关联 事先把文章使用分词打散,以词为依据,标记清楚对应的文章的编号 查询时 把查询的语句也进行分词,然后根据分词,找到那些文章中包含了这些词 2.django创建全文索引的过程 1.django中提供的是结构化数据(mysql中) 阅读全文
posted @ 2020-11-11 10:56 高登汗 阅读(230) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页