上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 59 下一页
摘要: 很多web 框架中经常看到slug的使用 什么是slug? slug 是一种术语 意为 爬行虫 鼻涕虫 使用使用包含数字 字母 下划线的 的 短标签 有什么用呢? 有利于seo的优化 一般的参数 例如 news-article-title 用在什么地方? 一般是用于web框架的 url的解析和处理 阅读全文
posted @ 2022-11-15 16:07 vx_guanchaoguo0 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 新建一个目录 mkdir example 基本说明文件 README.rst LICENSE setup.cfg setup.py MANIFEST.in docs example/README.rst 点击查看代码 example Polls is a Django app to conduct 阅读全文
posted @ 2022-11-15 10:52 vx_guanchaoguo0 阅读(58) 评论(0) 推荐(0) 编辑
摘要: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 如果提示 git 未安装 https://sourceforge.net/projects/git-osx-installer 阅读全文
posted @ 2022-11-14 09:36 vx_guanchaoguo0 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 使用国内源 全局 win + R 输入 %APPDATA% 回车 新建 pip/pip.ini 写入如下内容 [global] index-url=https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host=pypi.tuna.ts 阅读全文
posted @ 2022-11-08 21:29 vx_guanchaoguo0 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 构建镜像 dockerfile 点击查看代码 # 现在我们需要配置一些东西。 # 编译参数,用于指定 Swoole 版本 ARG swoole_ver # 保存到环境变量,如果没有传递就给默认值 ENV SWOOLE_VER=${swoole_ver:-"v4.5.0"} # apk 是 alpin 阅读全文
posted @ 2022-11-08 20:59 vx_guanchaoguo0 阅读(63) 评论(0) 推荐(0) 编辑
摘要: version: "3" services: pgsql: container_name: pgsql image: postgres:latest privileged: true environment: POSTGRES_PASSWORD: password POSTGRES_USER: po 阅读全文
posted @ 2022-11-08 20:54 vx_guanchaoguo0 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 使用ide 上传文件 代替postman 上传文件 环境文件 http-client.private.env.json { "dev": { "host": "http://localhost:15731/api/v1/", "jwt": "" } } 新建文件 .http后缀结尾即可 ### 上传 阅读全文
posted @ 2022-11-08 16:37 vx_guanchaoguo0 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #### 背景 * pycharm + win10 环境开发 很多时候 需要编译 一些c++ 拓展 例如 bcrypt==3.1.4 * win 安装一堆的 Microsoft Visual C++ 14.0 is required #### 内置服务 ``` set -eux && sed -i 阅读全文
posted @ 2022-11-08 10:12 vx_guanchaoguo0 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 递归回溯实现 退出条件全部遍历结束 // 全部结束 if (count == 81): # 递归出口 return True // 已经填充过了 # 行优先遍历 row = count // 9 # 行标 col = count % 9 # 列标 if matrix[row][col] != 0: 阅读全文
posted @ 2022-11-02 22:31 vx_guanchaoguo0 阅读(73) 评论(0) 推荐(0) 编辑
摘要: python 1~100 生成 3一个组 print ([[x for x in range(1,100)] [i:i+3] for i in range(0,100,3)]) 阅读全文
posted @ 2022-11-02 20:51 vx_guanchaoguo0 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 59 下一页