
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
# 08.绘制等高线图[toc]{type: "ol", level: [3,4,5]}### 等高线```pythonimport matplotlib.pyplot as pltimport numpy as np# 可理解为:x轴有100个点,y轴有100个点x = np.linspace(-10, 10, 100)y = np.linspace(-10, 10, 100)# 计算x,y的交
# 01.分页配置[toc]{type: "ol", level: [2, 3, 4, 5]}### 全局配置```python### settings.dev# 分页配置# 参数输入:?limit=m&offset=n'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',# 参数输入:?
# 07.拼接与合并[toc]{type: "ol", level: [2,3,4,5]}### 拼接-Series对象```pythonimport pandas as pdser1 = pd.Series([1, 2, 3], index=list('ABC'))ser2 = pd.Series([4, 5, 6], index=list('DEF'))pd.concat([ser1, ser
# 01.Basic认证[toc]{type: "ol", level: [2, 3, 4, 5]}### 全局认证配置```python# 配置认证信息'DEFAULT_AUTHENTICATION_CLASSES': [# session认证'rest_framework.authentication.SessionAuthentication',# basic认证'rest_framewor
# 05.Pandas常用方法[toc]{type: "ol", level: [3,4,5]}### 创建数据```pythonimport pandas as pddata = pd.DataFrame({'Name': ['lili', 'bing', 'rose'],'Num': ['1001', '1002', '1003'],'Sex': ['man', 'woman', 'man']
# 09.绘制三维图[toc]{type: "ol", level: [3,4,5]}### 三维图```pythonimport matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3D# 创建X,Y,Z坐标X = np.random.rand(10000)Y = np.random.ran
# 04.获取DataFrame对象的值[toc]{type: "ol", level: [3,4,5]}### 创建对象```pythonimport numpy as npimport pandas as pddata = pd.DataFrame(np.arange(12).reshape(3, 4),index=list('abc'), columns=list('ABCD'))data`
# 03.JWT认证[toc]{type: "ol", level: [2, 3, 4, 5]}### 基本组成#### head 头部基本信息 可逆加密#### payload 体关键信息 可逆加密#### sgin 签名安全信息 不可逆加密<br><br>### 基础配置json web token#### 安装jwt```pythonpip install djang
# 01.使用drf实现前后端分离[toc]{type: "ol", level: [2, 3, 4, 5]}### 环境搭建#### 安装django环境```pythonpip install django```#### 安装drf环境```pythonpip install djangorestframework```<br><br>### 注册应用```python
# 03.绘制曲线图[toc]{type: "ol", level: [3,4,5]}### 一元二次方程曲线```pythonimport matplotlib.pyplot as plt# 需要传入n个点 点越多越精确x = range(-100, 100)y = [i**2 for i in x]plt.plot(x, y)```### 正弦|







