当前位置:首页>python>Python教程 - 前端入门:React/Vue 基础 + 调用 API

Python教程 - 前端入门:React/Vue 基础 + 调用 API

  • 2026-08-18 23:10:32
Python教程 - 前端入门:React/Vue 基础 + 调用 API

前几期我们从爬虫抓数据,到数据分析处理,再到 Web 后端搭建——你已经能自己从网上拿到数据、分析数据、然后通过 API 把数据提供给别人用了。

但还有一个关键问题没解决:

**数据给出去之后,用户怎么看到它?**

这就是本期的主题:**前端开发入门**

我们将学习两种主流前端框架:

| 框架 | 特点 | 适用场景 |

|------|------|----------|

**Vue.js** | 上手简单、文档友好、渐进式 | 快速原型、中小项目 |

**React** | 生态庞大、社区活跃、灵活性高 | 大型项目、复杂应用 |

>**前置知识**:本教程假设你已经掌握了前面几期学过的 Python 基础、数据结构、以及 Episode 07 学过的 FastAPI 基础知识。如果你还没有看过 Episode 07,建议先去补一下。

---

## 9.1 什么是前端?

先搞懂一个基本概念。

你的程序有三层:

```

┌─────────────┐

│   前端       │  ← 用户看到的东西(浏览器里展示的)

├─────────────┤

│   API       │  ← 中间人(传递数据的桥梁)

├─────────────┤

│   后端       │  ← 逻辑处理和数据库

└─────────────┘

```

前端负责的是**用户界面**——按钮长什么样、文字显示什么、点击之后发生什么。

后端负责的是**业务逻辑**——数据从哪来、怎么处理、存到哪去。

API 是**两者之间的桥**——前端说"给我一份用户列表",后端说"好的,这是你要的数据"。

---

## 9.2 Vue.js 入门:最友好的起点

### 9.2.1 为什么从 Vue 开始?

Vue 的设计哲学就三个词:**简单、灵活、好用**

它不像 React 那样需要你学一堆概念(JSX、Hooks、Context……),也不像 Angular 那样给你一个"全家桶"(什么都准备好了,但也什么都不能乱动)。

Vue 给你的,刚好够用。

### 9.2.2 第一个 Vue 组件

最简单的方式——直接用一个 HTML 文件,引入 Vue CDN:

```html

<!DOCTYPEhtml>

<html>

<head>

<title>我的第一个 Vue 页面</title>

<scriptsrc="https://unpkg.com/vue@3/dist/vue.global.js"></script>

</head>

<body>

<divid="app">

<h1>{{ message }}</h1>

<p>一共有 {{ items.length }} 条数据</p>

<ul>

<liv-for="item in items":key="item.id">

                {{ item.name }} - ¥{{ item.price }}

</li>

</ul>

<button@click="addItem">加一条</button>

</div>

<script>

const { createAppref } = Vue;

createApp({

setup() {

constmessage=ref('Hello Vue!');

constitems=ref([

                    { id:1name:'苹果'price:5.5 },

                    { id:2name:'香蕉'price:3.0 },

                    { id:3name:'橙子'price:4.5 }

                ]);

constaddItem= () => {

                    items.value.push({

id: items.value.length+1,

name:'新水果',

price: Math.round(Math.random() *10*10/10

                    });

                };

return { message, items, addItem };

            }

        }).mount('#app');

</script>

</body>

</html>

```

保存为 `hello-vue.html`,直接用浏览器打开,就能看到效果。

**关键概念拆解:**

| 语法 | 含义 |

|------|------|

`{{ }}` | 插值表达式,把数据放到页面中 |

`v-for` | 循环,遍历数组渲染列表 |

`@click` | 事件监听,点击时调用方法 |

`ref()` | 响应式数据——数据变了,页面会自动更新 |

### 9.2.3 从后端 API 获取数据

这才是真正有用的部分。

还记得 Episode 07 学的 FastAPI 吗?我们用它来做一个**前后端联调**的完整流程。

**后端代码(main.py):**

```python

from fastapi import FastAPI

from fastapi.middleware.cors import CORSMiddleware

from pydantic import BaseModel

from typing import List

app = FastAPI()

# 允许跨域——前端调后端必须有这个!

app.add_middleware(

    CORSMiddleware,

allow_origins=["*"],  # 生产环境改成具体域名

allow_credentials=True,

allow_methods=["*"],

allow_headers=["*"],

)

# 模拟数据库

fruits = [

    {"id"1"name""苹果""price"5.5"category""水果"},

    {"id"2"name""香蕉""price"3.0"category""水果"},

    {"id"3"name""键盘""price"299.0"category""数码"},

    {"id"4"name""鼠标""price"99.0"category""数码"},

    {"id"5"name""橙子""price"4.5"category""水果"},

]

@app.get("/api/fruits")

defget_fruits():

"""获取所有水果"""

return fruits

@app.get("/api/fruits/{fruit_id}")

defget_fruit(fruit_idint):

"""获取单个水果"""

for fruit in fruits:

if fruit["id"] == fruit_id:

return fruit

return {"error""未找到"}

classNewFruit(BaseModel):

    name: str

    price: float

    category: str

@app.post("/api/fruits")

defcreate_fruit(fruit: NewFruit):

"""新增水果"""

    new_id = max(f["id"for f in fruits) + 1

    new_fruit = {"id": new_id, **fruit.model_dump()}

    fruits.append(new_fruit)

return new_fruit

```

**前端代码(vue-api-demo.html):**

```html

<!DOCTYPEhtml>

<html>

<head>

<title>Vue + FastAPI 联动</title>

<scriptsrc="https://unpkg.com/vue@3/dist/vue.global.js"></script>

<style>

body { font-familysans-serifpadding20px; }

.grid { displaygridgrid-template-columnsrepeat(auto-fillminmax(200px1fr)); gap16px; }

.card { border1pxsolid#dddborder-radius8pxpadding16pxtransition: box-shadow 0.2s; }

.card:hover { box-shadow02px8pxrgba(0,0,0,0.15); }

.price { color#e74c3cfont-weightboldfont-size1.2em; }

.tag { displayinline-blockbackground#ecf0f1padding2px8pxborder-radius4pxfont-size0.8emmargin-top4px; }

.form-group { margin-bottom12px; }

.form-grouplabel { displayblockmargin-bottom4pxfont-weightbold; }

.form-groupinput.form-groupselect { width100%padding8pxborder1pxsolid#cccborder-radius4px; }

button { background#3498dbcolorwhitebordernonepadding10px20pxborder-radius4pxcursorpointer; }

button:hover { background#2980b9; }

#loading { color#999; }

</style>

</head>

<body>

<divid="app">

<h1>🍎 水果商城</h1>

<!-- 加载状态 -->

<divid="loading"v-if="loading">加载中...</div>

<!-- 商品网格 -->

<divclass="grid"v-if="!loading">

<divclass="card"v-for="item in filteredItems":key="item.id">

<h3>{{ item.name }}</h3>

<pclass="price">¥{{ item.price.toFixed(2) }}</p>

<spanclass="tag">{{ item.category }}</span>

</div>

</div>

<!-- 分类筛选 -->

<divstyle="margin: 20px 0;">

<button@click="filterCategory = '全部'":style="{ background: filterCategory === '全部' ? '#2c3e50' : '#3498db' }">全部</button>

<button@click="filterCategory = '水果'":style="{ background: filterCategory === '水果' ? '#2c3e50' : '#3498db' }">水果</button>

<button@click="filterCategory = '数码'":style="{ background: filterCategory === '数码' ? '#2c3e50' : '#3498db' }">数码</button>

</div>

<!-- 新增商品表单 -->

<h3>新增商品</h3>

<divclass="form-group">

<label>名称</label>

<inputv-model="newItem.name"placeholder="输入商品名称">

</div>

<divclass="form-group">

<label>价格</label>

<inputtype="number"v-model="newItem.price"placeholder="输入价格">

</div>

<divclass="form-group">

<label>分类</label>

<selectv-model="newItem.category">

<option>水果</option>

<option>数码</option>

</select>

</div>

<button@click="submitForm">提交</button>

<!-- 提交结果 -->

<pv-if="message"style="color: green; margin-top: 16px;">{{ message }}</p>

</div>

<script>

const { createApprefcomputedonMounted } = Vue;

createApp({

setup() {

constitems=ref([]);

constloading=ref(true);

constfilterCategory=ref('全部');

constnewItem=ref({ name:''price:''category:'水果' });

constmessage=ref('');

// 计算属性:根据分类过滤

constfilteredItems=computed(() => {

if (filterCategory.value ==='全部'return items.value;

return items.value.filter(item=> item.category === filterCategory.value);

                });

// 从后端 API 获取数据

constfetchData=async () => {

try {

constres=awaitfetch('http://localhost:8000/api/fruits');

                        items.value =await res.json();

                    } catch (err) {

                        console.error('获取数据失败:', err);

// 如果后端没启动,用模拟数据

                        items.value = [

                            { id:1name:'苹果'price:5.5category:'水果' },

                            { id:2name:'香蕉'price:3.0category:'水果' },

                        ];

                    } finally {

                        loading.value =false;

                    }

                };

// 提交表单

constsubmitForm=async () => {

try {

constres=awaitfetch('http://localhost:8000/api/fruits', {

method:'POST',

headers: { 'Content-Type':'application/json' },

body:JSON.stringify(newItem.value)

                        });

constresult=await res.json();

                        items.value.push(result);

                        newItem.value = { name:''price:''category:'水果' };

                        message.value ='提交成功!商品 ID: '+ result.id;

                    } catch (err) {

                        message.value ='提交失败,后端可能未启动';

                    }

                };

onMounted(fetchData);

return {

                    items, loading, filterCategory, filteredItems,

                    newItem, message, submitForm

                };

            }

        }).mount('#app');

</script>

</body>

</html>

```

**运行步骤:**

1. 启动后端:`uvicorn main:app --reload`

2. 用浏览器打开 `vue-api-demo.html`

3. 你会看到商品列表自动加载

4. 点击分类按钮,列表自动筛选

5. 填写表单,点击提交,新商品立刻出现在列表中

**这就是完整的前后端联调流程。**

---

## 9.3 React 入门:进阶之选

Vue 让你理解了"前端 + API"的基本模式。接下来,来看看 React。

React 和 Vue 理念不同:Vue 用模板语法,React 用 **JSX**——把 HTML 写在 JavaScript 里。

### 9.3.1 用 Vite 创建 React 项目

```bash

npmcreatevite@latestmy-react-app----templatereact

cdmy-react-app

npminstall

npmrundev

```

### 9.3.2 第一个 React 组件

```jsx

// App.jsx

import{ useState, useEffect }from'react';

functionApp() {

const [itemssetItems=useState([]);

const [loadingsetLoading=useState(true);

const [filtersetFilter=useState('全部');

const [newNamesetNewName=useState('');

const [newPricesetNewPrice=useState('');

// 类似 Vue 的 onMounted

useEffect(() => {

fetchItems();

    }, []);

constfetchItems=async () => {

try {

constres=awaitfetch('http://localhost:8000/api/fruits');

constdata=await res.json();

setItems(data);

        } catch {

setItems([

                { id:1name:'苹果'price:5.5category:'水果' },

                { id:2name:'香蕉'price:3.0category:'水果' },

            ]);

        }

setLoading(false);

    };

// 筛选

constfilteredItems= items.filter(item=>

        filter ==='全部'?true: item.category === filter

    );

// 提交

consthandleSubmit=async (e=> {

        e.preventDefault();

constnewItem= {

name: newName,

price:parseFloat(newPrice),

category:'水果'

        };

try {

constres=awaitfetch('http://localhost:8000/api/fruits', {

method:'POST',

headers: { 'Content-Type':'application/json' },

body:JSON.stringify(newItem)

            });

constresult=await res.json();

setItems([...items, result]);

        } catch {

alert('提交失败,后端可能未启动');

        }

setNewName('');

setNewPrice('');

    };

if (loading) return<p>加载中...</p>;

return (

<divstyle={padding:'20px'fontFamily:'sans-serif' }}>

<h1>🍎 React 水果商城</h1>

{/* 筛选按钮 */}

<divstyle={marginBottom:'20px' }}>

{['全部''水果''数码'].map(cat=> (

<button

key={cat}

onClick={() =>setFilter(cat)}

style={{

background: filter === cat ?'#2c3e50':'#3498db',

color:'white',

border:'none',

padding:'8px 16px',

marginRight:'8px',

borderRadius:'4px',

cursor:'pointer'

                        }}

>

{cat}

</button>

                ))}

</div>

{/* 商品卡片 */}

<divstyle={display:'grid'gridTemplateColumns:'repeat(auto-fill, minmax(200px, 1fr))'gap:'16px' }}>

{filteredItems.map(item=> (

<divkey={item.id}style={{

border:'1px solid #ddd',

borderRadius:'8px',

padding:'16px'

                    }}>

<h3>{item.name}</h3>

<pstyle={color:'#e74c3c'fontWeight:'bold' }}>

                            ¥{item.price.toFixed(2)}

</p>

<spanstyle={background:'#ecf0f1'padding:'2px 8px'borderRadius:'4px' }}>

{item.category}

</span>

</div>

                ))}

</div>

{/* 新增表单 */}

<formonSubmit={handleSubmit}style={marginTop:'30px'maxWidth:'400px' }}>

<h3>新增商品</h3>

<divstyle={marginBottom:'12px' }}>

<label>名称</label><br/>

<input

type="text"

value={newName}

onChange={e=>setNewName(e.target.value)}

style={width:'100%'padding:'8px'marginTop:'4px' }}

/>

</div>

<divstyle={marginBottom:'12px' }}>

<label>价格</label><br/>

<input

type="number"

value={newPrice}

onChange={e=>setNewPrice(e.target.value)}

style={width:'100%'padding:'8px'marginTop:'4px' }}

/>

</div>

<buttontype="submit"style={{

background:'#27ae60',

color:'white',

border:'none',

padding:'10px 20px',

borderRadius:'4px',

cursor:'pointer'

                }}>

                    提交

</button>

</form>

</div>

    );

}

exportdefaultApp;

```

### 9.3.3 Vue vs React 核心概念对比

| 功能 | Vue 3 | React |

|------|-------|-------|

| 状态管理 | `ref()` / `reactive()` | `useState()` |

| 生命周期 | `onMounted()` | `useEffect(() => {}, [])` |

| 计算属性 | `computed()` | `useMemo()` |

| 模板 | HTML 模板语法 | JSX(JavaScript 内嵌) |

| 响应式原理 | 代理(Proxy)自动追踪 | 手动声明依赖 |

| 学习曲线 | 低——上手快 | 中——概念稍多 |

---

## 9.4 实战:做一个"数据看板"

现在我们已经能调 API、能展示数据了。

来做一个实用的东西:**个人财务数据看板**

把 Episode 06 做的数据分析结果,以前端页面展示出来。

### 9.4.1 后端:提供看板数据 API

```python

# dashboard_api.py

from fastapi import FastAPI

from fastapi.middleware.cors import CORSMiddleware

import numpy as np

app = FastAPI()

app.add_middleware(

    CORSMiddleware,

allow_origins=["*"],

allow_credentials=True,

allow_methods=["*"],

allow_headers=["*"],

)

# 模拟月度收支数据

monthly_data = [

    {"month""1月""income"12000"expense"8500"savings"3500},

    {"month""2月""income"12000"expense"9200"savings"2800},

    {"month""3月""income"13000"expense"7800"savings"5200},

    {"month""4月""income"13000"expense"10500"savings"2500},

    {"month""5月""income"13500"expense"8100"savings"5400},

    {"month""6月""income"14000"expense"7500"savings"6500},

]

@app.get("/api/dashboard")

defget_dashboard():

"""获取看板汇总数据"""

    total_income = sum(m["income"for m in monthly_data)

    total_expense = sum(m["expense"for m in monthly_data)

    total_savings = sum(m["savings"for m in monthly_data)

return {

"summary": {

"总收入": total_income,

"总支出": total_expense,

"总储蓄": total_savings,

"储蓄率"round(total_savings / total_income * 1001)

        },

"monthly": monthly_data

    }

```

### 9.4.2 前端:用 Vue 展示数据看板

```html

<!DOCTYPEhtml>

<html>

<head>

<title>个人财务看板</title>

<scriptsrc="https://unpkg.com/vue@3/dist/vue.global.js"></script>

<style>

* { margin0padding0box-sizingborder-box; }

body { font-family'Microsoft YaHei'sans-serifbackground#f5f7fapadding20px; }

.dashboard { max-width900pxmargin0auto; }

.header { text-aligncentermargin-bottom30px; }

.headerh1 { color#2c3e50; }

.headerp { color#7f8c8d; }

.summary-grid { displaygridgrid-template-columnsrepeat(41fr); gap16pxmargin-bottom30px; }

.summary-card { backgroundwhitepadding20pxborder-radius12pxtext-aligncenterbox-shadow02px4pxrgba(0,0,0,0.05); }

.summary-card.label { color#95a5a6font-size0.9emmargin-bottom8px; }

.summary-card.value { font-size1.8emfont-weightbold; }

.summary-card.income.value { color#27ae60; }

.summary-card.expense.value { color#e74c3c; }

.summary-card.savings.value { color#3498db; }

.summary-card.rate.value { color#9b59b6; }

.chart-container { backgroundwhitepadding20pxborder-radius12pxbox-shadow02px4pxrgba(0,0,0,0.05); margin-bottom30px; }

.chart-containerh3 { margin-bottom16pxcolor#2c3e50; }

.bar-chart { displayflexalign-itemsflex-endgap12pxheight200pxpadding010px; }

.bar-group { flex1displayflexflex-directioncolumnalign-itemscenter; }

.bar-row { displayflexgap4pxalign-itemsflex-endheight160px; }

.bar { width18pxborder-radius4px4px00transition: height 0.3s; }

.bar.income { background#27ae60; }

.bar.expense { background#e74c3c; }

.bar-label { font-size0.75emcolor#7f8c8dmargin-top6px; }

.table { width100%border-collapsecollapse; }

.tableth.tabletd { padding10pxtext-alignleftborder-bottom1pxsolid#eee; }

.tableth { background#f8f9facolor#2c3e50font-weight600; }

.trend-up { color#27ae60; }

.trend-down { color#e74c3c; }

#loading { text-aligncenterpadding40pxcolor#95a5a6; }

</style>

</head>

<body>

<divclass="dashboard"id="app">

<divclass="header">

<h1>📊 个人财务看板</h1>

<p>2026年上半年收支概览</p>

</div>

<divid="loading"v-if="loading">加载中...</div>

<templatev-if="!loading">

<!-- 汇总卡片 -->

<divclass="summary-grid">

<divclass="summary-card income">

<divclass="label">总收入</div>

<divclass="value">¥{{ summary.income.toLocaleString() }}</div>

</div>

<divclass="summary-card expense">

<divclass="label">总支出</div>

<divclass="value">¥{{ summary.expense.toLocaleString() }}</div>

</div>

<divclass="summary-card savings">

<divclass="label">总储蓄</div>

<divclass="value">¥{{ summary.savings.toLocaleString() }}</div>

</div>

<divclass="summary-card rate">

<divclass="label">储蓄率</div>

<divclass="value">{{ summary.rate }}%</div>

</div>

</div>

<!-- 月度柱状图 -->

<divclass="chart-container">

<h3>月度收支对比</h3>

<divclass="bar-chart">

<divclass="bar-group"v-for="month in monthly":key="month.month">

<divclass="bar-row">

<divclass="bar income":style="{ height: month.income + 'px' }"></div>

<divclass="bar expense":style="{ height: month.expense + 'px' }"></div>

</div>

<divclass="bar-label">{{ month.month }}</div>

</div>

</div>

</div>

<!-- 数据表格 -->

<divclass="chart-container">

<h3>明细数据</h3>

<tableclass="table">

<thead>

<tr>

<th>月份</th>

<th>收入</th>

<th>支出</th>

<th>储蓄</th>

<th>储蓄率</th>

<th>趋势</th>

</tr>

</thead>

<tbody>

<trv-for="(m, i) in monthlyWithTrend":key="m.month">

<td>{{ m.month }}</td>

<td>¥{{ m.income.toLocaleString() }}</td>

<td>¥{{ m.expense.toLocaleString() }}</td>

<td>¥{{ m.savings.toLocaleString() }}</td>

<td>{{ m.rate }}%</td>

<td:class="m.trend === 'up' ? 'trend-up' : m.trend === 'down' ? 'trend-down' : ''">

                                {{ m.trendIcon }}

</td>

</tr>

</tbody>

</table>

</div>

</template>

</div>

<script>

const { createApprefcomputedonMounted } = Vue;

createApp({

setup() {

constloading=ref(true);

constsummary=ref({ income:0expense:0savings:0rate:0 });

constmonthly=ref([]);

constmonthlyWithTrend=computed(() => {

return monthly.value.map((mi=> {

constrate= Math.round(m.savings / m.income *100);

let trend ='flat';

let trendIcon ='';

if (i >0) {

constprevRate= Math.round(monthly.value[i -1].savings / monthly.value[i -1].income *100);

if (rate > prevRate) { trend ='up'; trendIcon ='↑'; }

elseif (rate < prevRate) { trend ='down'; trendIcon ='↓'; }

else { trendIcon ='—'; }

                        }

return { ...m, rate, trend, trendIcon };

                    });

                });

constfetchData=async () => {

try {

constres=awaitfetch('http://localhost:8000/api/dashboard');

constdata=await res.json();

                        summary.value = data.summary;

                        monthly.value = data.monthly.map(m=> ({

...m,

income: m.income /2,    // 缩放到200px高度内

expense: m.expense /2

                        }));

                    } catch {

// 模拟数据

constmockData= [

                            { month:'1月'income:6000expense:4250 },

                            { month:'2月'income:6000expense:4600 },

                            { month:'3月'income:6500expense:3900 },

                            { month:'4月'income:6500expense:5250 },

                            { month:'5月'income:6750expense:4050 },

                            { month:'6月'income:7000expense:3750 }

                        ];

                        monthly.value = mockData;

                        summary.value = {

income:38750,

expense:25800,

savings:12950,

rate:33.4

                        };

                    } finally {

                        loading.value =false;

                    }

                };

onMounted(fetchData);

return { loading, summary, monthly, monthlyWithTrend };

            }

        }).mount('#app');

</script>

</body>

</html>

```

把这个文件保存为 `dashboard.html`,双击打开就能看到效果。

---

## 9.5 三种前端技术对比

| 特性 | 原生 HTML/JS | Vue.js | React |

|------|-------------|--------|-------|

| 学习门槛 | 极低 | 低 | 中 |

| 适合项目 | 简单页面 | 中小项目、快速原型 | 大型项目、复杂交互 |

| 生态系统 | 需自行组装 | 渐进式,按需引入 | 庞大,社区丰富 |

| 性能 | 好(无框架开销) | 好 | 好(虚拟 DOM) |

| 就业市场 | 基础必备 | 国内大厂常用 | 国内外广泛使用 |

---

## 9.6 练习题

### 练习 1:做一个"天气查询"小应用

调用一个免费的天气 API(或者用模拟数据),实现:

- 输入城市名,显示当前温度和天气状况

- 用图标或颜色区分晴天、雨天、阴天

- 展示未来三天的预报趋势

提示:用 Vue 的 `v-model` 绑定输入框,`@click` 触发查询。

### 练习 2:用 React 改写上面的看板

把 9.4.2 节的 Vue 看板改成 React 版本。重点练习:

-`useState` 和 `useEffect` 的使用

- JSX 写法

- 组件拆分(可以把汇总卡片拆成一个 `SummaryCard` 组件)

### 练习 3:做一个"待办事项"清单

这是每个前端框架都会做的经典入门项目。要求:

- 可以添加待办

- 可以标记完成(划掉)

- 可以删除

- 有筛选功能(全部/未完成/已完成)

- 数据存入 `localStorage`(刷新不丢失)

### 练习 4:对接你自己的 FastAPI 后端

回想 Episode 07 你写的记账 API。现在用前端做一个漂亮的界面来展示:

- 首页展示本月总支出

- 分类展示各模块的消费占比(饼图可以用纯 CSS 做,也可以用 canvas)

- 可以添加新的记账记录

---

## 9.7 本课时知识点小结

| 知识点 | 关键词 |

|--------|--------|

| Vue 基础 | ref / computed / v-for / @click / onMounted |

| React 基础 | useState / useEffect / JSX |

| 前后端通信 | fetch API / CORS / JSON |

| 数据看板 | 卡片布局 / 柱状图 / 趋势展示 |

---

## 9.8 工具链总结

到目前为止,你已经掌握了:

```

Episode 01-04    Episode 05     Episode 06     Episode 07     Episode 08    Episode 09

基础语法 →       爬虫 →        数据分析 →     后端 API →      AI实战 →      前端展示

Python           抓数据        分析数据        提供数据         增强智能      呈现数据

```

一套完整的数据 pipeline:**采集 → 分析 → 智能处理 → 接口服务 → 前端展示**

---

## 9.9 下期预告

下一期(**Episode 10**),我们将进行**综合项目实战**——从零搭建一个**数据分析 Dashboard**

你会用到之前学过的所有技能:

- 用 **Python + Pandas** 分析真实数据集

- 用 **Matplotlib/Seaborn** 生成图表

- 用 **FastAPI** 提供数据 API

- 用 **Vue 或 React** 构建交互式前端页面

- (可选)用 **LangChain** 给看板加一个"智能问答"功能——直接问"上个月哪笔开支最多",AI 帮你回答

这将是整个系列的第一次"毕业考核"。准备好了吗?🚀

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 19:41:58 HTTP/2.0 GET : https://f.mffb.com.cn/a/504671.html
  2. 运行时间 : 0.231342s [ 吞吐率:4.32req/s ] 内存消耗:4,916.52kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=e6ea39b1105ace721228d5561ed2f642
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000834s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001377s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.001038s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000724s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001353s ]
  6. SELECT * FROM `set` [ RunTime:0.000619s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001450s ]
  8. SELECT * FROM `article` WHERE `id` = 504671 LIMIT 1 [ RunTime:0.001519s ]
  9. UPDATE `article` SET `lasttime` = 1787312518 WHERE `id` = 504671 [ RunTime:0.003312s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000822s ]
  11. SELECT * FROM `article` WHERE `id` < 504671 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.015025s ]
  12. SELECT * FROM `article` WHERE `id` > 504671 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.003440s ]
  13. SELECT * FROM `article` WHERE `id` < 504671 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.006392s ]
  14. SELECT * FROM `article` WHERE `id` < 504671 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.017153s ]
  15. SELECT * FROM `article` WHERE `id` < 504671 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.009653s ]
0.235152s