会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bhxuwei
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年2月25日
Mac免密登录Centos
摘要: centos root账号添加新用户并赋予权限 sudo useradd -m name sudo passwd name vi /etc/sudoers 设置用户权限 第一步:Mac本机生成密钥 打开Mac终端,输入:ssh-keygen -t rsa -C "your@qq.com" 后面的邮箱
阅读全文
posted @ 2022-02-25 14:15 bhxuwei
阅读(178)
评论(0)
推荐(0)
2022年2月24日
Django Session 和 Cookie
摘要: 前言 http:无状态请求(客户端发起的无数请求,服务端并不知道是否来自同一个客户端),所以引入session来做相应响应和权限处理。 cookie和session区别与联系 cookie保存在客户端 session保存在服务端 由于http的无状态性,为了使某个域名下的所有网页能够共享某些数据,s
阅读全文
posted @ 2022-02-24 22:44 bhxuwei
阅读(41)
评论(0)
推荐(0)
2022年2月23日
Http请求的9种方法 和 4种服务器传参途径
摘要: HTTP 请求 HTTP1.0 定义了三种请求方法: GET, POST 和 HEAD 方法。 HTTP1.1 新增了六种请求方法:OPTIONS、PUT、PATCH、DELETE、TRACE 和 CONNECT 方法。 1. GET get方法请求指定的页面信息,返回实体主体。该请求是向服务器请求
阅读全文
posted @ 2022-02-23 23:03 bhxuwei
阅读(2325)
评论(0)
推荐(0)
2022年1月28日
Mac M1芯片管理python环境
摘要: 用miniforge3 conda 代替之前的anaconda; 安装Numpy / Pandas 等时必须先:conda install openblas;否则会报错 libcblas.3.dylib (no such file)
阅读全文
posted @ 2022-01-28 11:09 bhxuwei
阅读(238)
评论(0)
推荐(0)
2021年11月24日
pip jupyter安装与使用
摘要: 在一定的python环境下执行命令 pip install --user jupyter 成功后,执行命令 python -m IPython notebook or jupyter notebook 打开网页即可
阅读全文
posted @ 2021-11-24 19:09 bhxuwei
阅读(126)
评论(0)
推荐(0)
2021年8月31日
python 知识
摘要: dict my_dict.setdefault(key, []).append(new_value) 比如,我们新建了这样一个字典:dd = defaultdict(list),如果键 'new-key' 在 dd 中还不存在的话,表达式 dd['new-key'] 会按照以下的步骤来行事。 (1)
阅读全文
posted @ 2021-08-31 22:15 bhxuwei
阅读(36)
评论(0)
推荐(0)
2021年7月30日
git 操作命令
摘要: 记住用户名和密码(不用每次都输入) git config --global credential.helper store git config --global credential.helper 'cache --timeout=86400'(记住一天)
阅读全文
posted @ 2021-07-30 09:36 bhxuwei
阅读(39)
评论(0)
推荐(0)
2021年5月14日
react build dist发布nginx时的配置
摘要: umi project Getting Started Install dependencies, $ yarn Start the dev server, $ yarn start config/config.ts中的这个配置对nginx很关键 import {defineConfig} from
阅读全文
posted @ 2021-05-14 13:34 bhxuwei
阅读(278)
评论(0)
推荐(0)
2021年5月10日
gunicorn的参数详解
摘要: -c CONFIG : CONFIG,配置文件的路径,通过配置文件启动;生产环境使用; -b ADDRESS : ADDRESS,ip加端口,绑定运行的主机; -w INT, --workers INT:用于处理工作进程的数量,为正整数,默认为1; -k STRTING, --worker-clas
阅读全文
posted @ 2021-05-10 15:13 bhxuwei
阅读(1601)
评论(0)
推荐(0)
2021年4月29日
pandas groupby 字段存在None值的坑
摘要: import pandas as pd def test(tmp_df: pd.DataFrame): print(tmp_df) df = pd.DataFrame([{'name': 'xw', 'org': 1232, 'num': 1}, {'name': 'xw', 'org': None
阅读全文
posted @ 2021-04-29 17:34 bhxuwei
阅读(937)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告