![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
linzhiji
这个作者很懒,什么都没留下…
展开
-
python django ORM null blank choices help_text verbose_name
参考。原创 2022-11-12 23:18:22 · 632 阅读 · 2 评论 -
Django Migrate和Makemigrations
【代码】Django Migrate和Makemigrations。原创 2022-11-12 19:48:30 · 240 阅读 · 0 评论 -
vue + python django 405 Method Not Allowed cross origin跨域问题
【代码】vue + python django 405 Method Not Allowed cross origin跨越问题。原创 2022-11-12 00:56:25 · 485 阅读 · 0 评论 -
ubuntu 安装pyenv,管理版本
ubuntu 安装pyenv,管理版本原创 2022-10-03 20:26:17 · 395 阅读 · 0 评论 -
mac vscode could not be resolved Pylance
mac vscode could not be resolved Pylance原创 2022-09-29 10:51:38 · 310 阅读 · 0 评论 -
Python ModuleNotFoundError: No module named
Python ModuleNotFoundError: No module named原创 2022-09-28 19:13:05 · 591 阅读 · 0 评论 -
mac m1 安装/管理/指定 版本node
mac m1 安装/管理/指定 版本node原创 2022-08-26 17:15:44 · 526 阅读 · 0 评论 -
python打包/pip 安装过程(pip,setup.py,wheel,flit)
参考:pip 官方文档pip包管理工具-install执行流程简单查看_小屋子大侠的博客-CSDN博客Development Mode (a.k.a. “Editable Installs”) - setuptools 65.3.0.post20220826 documentation原创 2022-08-26 10:41:04 · 1009 阅读 · 0 评论 -
Mac管理多版本Python(pyenv, virtualenv,anaconda, venv)
python有众多的版本,不同版本之间支持的特性有差异,而且python2和python3是不向下兼容的,如果做机器学习方面工作又经常会使用。是python虚拟环境管理工具,可以为每个项目(对应一个目录)创建独立虚拟环境,不同的虚拟环境可以有不同的依赖库。为了应对这种局面,python出现了很多管理工具,例如:virtualenv、pipenv、pyenv等。用于管理python多版本,例如安装多个版本python,如果使用windows系统则需要使用。在一台机器上实现安装多个版本的python,.....原创 2022-08-25 18:37:33 · 2459 阅读 · 0 评论 -
python docker fastapi jsdelivr swagger 无法访问
使用了 fastapi 的python部署后,无法访问,查看源码https://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui-bundle.jshttps://cdn.jsdelivr.net/npm/swagger-ui-dist@3/swagger-ui.css这里2个链接无法访问解决办法,替换fastapi里的链接查找fastapi安装包位置,方法:python pip安装的包放在哪里_西京刀客的博客-CSDN博客_pip安原创 2022-05-27 23:58:19 · 655 阅读 · 0 评论 -
python一些笔记
Python - typing - Union#Union[int, str] 表示既可以是 int,也可以是 strvars: Union[int, str]# 等价于vars: [int or str] vars: Union[int]# 等价于vars: intPython - typing 模块 —— Union_小菠萝测试笔记的博客-CSDN博客pydantic-FieldField 可用于提供有关字段和验证的额外信息,如设置必填项和可选,设置最大值和最小原创 2022-05-11 16:44:51 · 363 阅读 · 0 评论 -
vscode + docker 开发
accvscode远程管理docker--踩坑记录 - 知乎原创 2022-05-10 15:30:55 · 432 阅读 · 0 评论 -
mac vscode /bin/sh: python: command not found
mac m1 里装了好几个版本的python,导致vs code执行的python的时候报错/bin/sh: python: command not found修复方法:python -u#改为python3 -udone原创 2022-04-15 17:22:33 · 5274 阅读 · 3 评论 -
python list 字典 差集 并集 交集
# 差集# srcFileList中有而dstFileList中没有的diff = list(set(srcFileList).difference(set(dstFileList)))原创 2022-01-26 17:45:35 · 1328 阅读 · 0 评论 -
Mac PATH 及命令路径
如何去掉mac的PATH环境变量中的“顽固分子”?原创 2021-10-14 14:59:17 · 788 阅读 · 0 评论 -
mac M1 修改/切换默认python2 python3 pip
方法一先在终端上输入python查看自己的默认的python版本 查看他的路径;在终端上输入:which python 如果已经安装了其他版本的python,在终端上输入自己所下载的python版本,例如:python3 查看自己下载的python3的路径:which python3 得到路径假设为:/usr/bin/python3 修改默认python版本,只需要再在终端上输入: alias python="/usr/bin/python3”引号内对应的是你自己的python3的路径.原创 2021-06-24 11:56:53 · 2253 阅读 · 0 评论