当前位置:首页>python>当你说”无差异曲线看不懂”时,可以用Python做点什么

当你说”无差异曲线看不懂”时,可以用Python做点什么

  • 2026-04-30 11:16:55
当你说”无差异曲线看不懂”时,可以用Python做点什么

当你说”无差异曲线看不懂”时,可以用Python做点什么

一、痛点

“无差异曲线为什么是凸向原点的?”

“预算线旋转的时候,均衡点到底是怎么移动的?”

这可能是我们每次看到微观经济学消费者选择时可能会发出的”灵魂拷问”。消费者选择理论又是承上启下的核心章节——它连接着效用论与需求曲线,是理解市场价格形成机制的微观基础。

但传统的静态PPT讲解,总是让自己在”切点”“均衡”“价格消费曲线”这些概念之间迷失方向。直到我决定:不如让曲线自己动起来

二、解决方案

用Python的matplotlib.animation模块,制作三个教学动画,分别对应消费者选择理论的三个关键认知节点:

🔷 动画一:均衡的形成——从”看不见”到”切得上”

痛点: “怎么知道切点在哪里?”

动画设计: - 分5步动态演示:画预算线 → 低效用无差异曲线 → 逼近最优 → 达到均衡 → 显示切线

🔷 动画二:价格变化——看懂”价格消费曲线”的生成逻辑

痛点: PCC曲线在教材上只是一条静态连线,学生不理解”点怎么来的”

动画设计: - 固定收入M,P₂,让P₁下降

🔷 动画三:收入变化——恩格尔曲线的前置可视化

教学痛点: 收入消费曲线(ICC)与后续恩格尔曲线关联度不高

动画设计: - 固定价格,收入逐渐增加

三、技术实现

技术栈: Python + NumPy + Matplotlib(FuncAnimation)

经济学模型: 柯布-道格拉斯效用函数 U = X₁^α · X₂^(1-α)

核心代码逻辑(节选):

"""微观经济学消费者选择理论 - 动态可视化功能:1. 无差异曲线和预算约束线相切的动态过程2. 商品1价格P1变化导致的均衡点动态变化(价格消费曲线)3. 收入变化导致的均衡点动态变化(收入消费曲线)"""import numpy as npimport matplotlib.pyplot as pltfrom matplotlib.animation import FuncAnimation# ==================== 设置中文字体 ====================plt.rcParams['font.size'=12# 如果需要显示中文,取消下面注释并设置合适的中文字体# plt.rcParams['font.sans-serif'] = ['SimHei', 'Arial Unicode MS', 'DejaVu Sans']# plt.rcParams['axes.unicode_minus'] = False# ==================== 核心函数定义 ====================def utility(x1, x2, alpha=0.5):"""柯布-道格拉斯效用函数:U = X1^α * X2^(1-α)默认α=0.5,即U = X1^0.5 * X2^0.5"""return (x1 ** alpha) * (x2 ** (1- alpha))def indifference_curve(x1, u, alpha=0.5):"""无差异曲线函数:给定效用水平u和x1,计算x2U = X1^α * X2^(1-α) => X2 = (U / X1^α)^(1/(1-α))"""x2 = np.zeros_like(x1)for i, val inenumerate(x1):if u <=0or val <=0:x2[i] = np.nanelse:x2[i] = (u / (val ** alpha)) ** (1/ (1- alpha))return x2def budget_line(x1, m, p1, p2):"""预算约束线:m = p1*x1 + p2*x2 => x2 = (m - p1*x1) / p2m: 收入p1: 商品1价格p2: 商品2价格"""return (m - p1 * x1) / p2def calculate_equilibrium(m, p1, p2, alpha=0.5):"""计算消费者均衡点(最优选择)对于柯布-道格拉斯效用函数,最优解为:X1* = α*M/P1X2* = (1-α)*M/P2"""x1_star = (alpha * m) / p1x2_star = ((1- alpha) * m) / p2u_star = utility(x1_star, x2_star, alpha)return x1_star, x2_star, u_star# ==================== 动画1:均衡形成过程 ====================def create_animation1(output_path='animation1_equilibrium_formation.gif'):"""动画1:无差异曲线和预算约束线相切的动态过程展示均衡点从无到有的形成过程"""fig, ax = plt.subplots(figsize=(108), dpi=120)# 参数设置=100# 收入p1 =2# 商品1价格p2 =5# 商品2价格alpha =0.5# 效用函数参数# 计算均衡点x1_star, x2_star, u_star = calculate_equilibrium(m, p1, p2, alpha)# 生成x1的取值范围x1 = np.linspace(0.150500)# 初始化线条line_budget, = ax.plot([], [], 'b-', linewidth=3, label='Budget Constraint', alpha=0.8)line_indiff, = ax.plot([], [], 'r-', linewidth=2.5, label='Indifference Curve', alpha=0.8)point_eq, = ax.plot([], [], 'go', markersize=15, markeredgecolor='darkgreen'markeredgewidth=2, label='Equilibrium Point')tangent_line, = ax.plot([], [], 'g--', linewidth=2, alpha=0.6, label='Tangent Line')# 添加注释文本text_info = ax.text(0.020.98'', transform=ax.transAxes, fontsize=11,              verticalalignment='top', bbox=dict(boxstyle='round'facecolor='wheat', alpha=0.8))# 设置坐标轴ax.set_xlim(055)ax.set_ylim(025)ax.set_xlabel('Good 1 (X₁)', fontsize=14, fontweight='bold')ax.set_ylabel('Good 2 (X₂)', fontsize=14, fontweight='bold')ax.set_title('Consumer Equilibrium Formation\n(Indifference Curve & Budget Line Tangency)'fontsize=16, fontweight='bold', pad=20)ax.grid(True, alpha=0.3, linestyle='--')ax.legend(loc='upper right', fontsize=11, framealpha=0.9)n_frames =100def init():line_budget.set_data([], [])line_indiff.set_data([], [])point_eq.set_data([], [])tangent_line.set_data([], [])text_info.set_text('')return line_budget, line_indiff, point_eq, tangent_line, text_infodef animate(frame):if frame <20:# 步骤1:画出预算约束线x1_budget = np.linspace(0, m/p1 * (frame/20), 100)x2_budget = budget_line(x1_budget, m, p1, p2)line_budget.set_data(x1_budget, x2_budget)text_info.set_text(f'Step 1: Drawing Budget Constraint\nIncome M={m}, P₁={p1}, P₂={p2}')elif frame <40:# 步骤2:低效用无差异曲线x1_budget = np.linspace(0, m/p1, 200)x2_budget = budget_line(x1_budget, m, p1, p2)line_budget.set_data(x1_budget, x2_budget)u_current = u_star *0.3+ (u_star *0.4* ((frame-20)/20)x2_indiff = indifference_curve(x1, u_current, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff.set_data(x1, x2_indiff)text_info.set_text(f'Step 2: Lower Indifference Curve (U={u_current:.1f})\nNot optimal - can reach higher utility')elif frame <60:# 步骤3:接近最优效用x1_budget = np.linspace(0, m/p1, 200)x2_budget = budget_line(x1_budget, m, p1, p2)line_budget.set_data(x1_budget, x2_budget)u_current = u_star *0.7+ (u_star *0.25* ((frame-40)/20)x2_indiff = indifference_curve(x1, u_current, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff.set_data(x1, x2_indiff)text_info.set_text(f'Step 3: Approaching Optimal Utility\nCurrent U={u_current:.1f}, Target U={u_star:.1f}')elif frame <80:# 步骤4:达到均衡效用x1_budget = np.linspace(0, m/p1, 200)x2_budget = budget_line(x1_budget, m, p1, p2)line_budget.set_data(x1_budget, x2_budget)x2_indiff = indifference_curve(x1, u_star, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff.set_data(x1, x2_indiff)point_alpha = (frame -60/20point_eq.set_data([x1_star], [x2_star])point_eq.set_alpha(point_alpha)text_info.set_text(f'Step 4: Optimal Indifference Curve U={u_star:.1f}\nEquilibrium Point E: X₁*={x1_star:.1f}, X₂*={x2_star:.1f}')else:# 步骤5:显示切线x1_budget = np.linspace(0, m/p1, 200)x2_budget = budget_line(x1_budget, m, p1, p2)line_budget.set_data(x1_budget, x2_budget)x2_indiff = indifference_curve(x1, u_star, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff.set_data(x1, x2_indiff)point_eq.set_data([x1_star], [x2_star])point_eq.set_alpha(1.0)# 切线tangent_x = np.linspace(x1_star-8, x1_star+8100)mrs = p1/p2tangent_y = x2_star + mrs * (x1_star - tangent_x)tangent_line.set_data(tangent_x, tangent_y)tangent_line.set_alpha((frame-80)/20)text_info.set_text(f'Equilibrium Achieved!\nX₁*={x1_star:.1f}, X₂*={x2_star:.1f}\nMRS = P₁/P₂ = {p1}/{p2} = {mrs:.2f}')return line_budget, line_indiff, point_eq, tangent_line, text_infoanim = FuncAnimation(fig, animate, init_func=init, frames=n_frames, interval=100, blit=True, repeat=True)anim.save(output_path, writer='pillow', fps=10, dpi=120)plt.close()print(f"✅ 动画1已保存至: {output_path}")# ==================== 动画2:价格变化 ====================def create_animation2(output_path='animation2_price_change.gif'):"""动画2:商品1价格P1变化导致的均衡点动态变化展示价格消费曲线(Price Consumption Curve)的形成"""fig, ax = plt.subplots(figsize=(118), dpi=120)=100# 收入保持不变p2 =5# 商品2价格保持不变alpha =0.5p1_start =5# 初始高价p1_end =1# 最终低价n_frames =100x1 = np.linspace(0.1110500)# 初始化线条line_budget_current, = ax.plot([], [], 'b-', linewidth=3, label='Current Budget Line', alpha=0.9)line_budget_previous, = ax.plot([], [], 'b--', linewidth=2, label='Previous Budget Lines', alpha=0.4)line_indiff_current, = ax.plot([], [], 'r-', linewidth=2.5, label='Current Indifference Curve', alpha=0.9)line_indiff_previous, = ax.plot([], [], 'r--', linewidth=1.5, alpha=0.3)points_eq, = ax.plot([], [], 'go', markersize=8, alpha=0.6)path_eq, = ax.plot([], [], 'g-', linewidth=2, marker='o', markersize=4label='Price Consumption Curve', alpha=0.8)point_current_eq, = ax.plot([], [], 'ro', markersize=15, markeredgecolor='darkred'markeredgewidth=2, label='Current Equilibrium', zorder=5)text_info = ax.text(0.020.98'', transform=ax.transAxes, fontsize=11,              verticalalignment='top', bbox=dict(boxstyle='round'facecolor='lightyellow', alpha=0.9))ax.set_xlim(0110)ax.set_ylim(025)ax.set_xlabel('Good 1 (X₁)', fontsize=14, fontweight='bold')ax.set_ylabel('Good 2 (X₂)', fontsize=14, fontweight='bold')ax.set_title('Effect of Price Change on Consumer Equilibrium\n(Price Consumption Curve Formation)'fontsize=16, fontweight='bold', pad=20)ax.grid(True, alpha=0.3, linestyle='--')ax.legend(loc='upper right', fontsize=10, framealpha=0.9)history_x1, history_x2, history_p1 = [], [], []def init():line_budget_current.set_data([], [])line_budget_previous.set_data([], [])line_indiff_current.set_data([], [])line_indiff_previous.set_data([], [])points_eq.set_data([], [])path_eq.set_data([], [])point_current_eq.set_data([], [])text_info.set_text('')history_x1.clear()history_x2.clear()history_p1.clear()return (line_budget_current, line_budget_previous, line_indiff_current, line_indiff_previous, points_eq, path_eq, point_current_eq, text_info)def animate(frame):= frame / n_framesp1_current = p1_start - (p1_start - p1_end) * tx1_star, x2_star, u_star = calculate_equilibrium(m, p1_current, p2, alpha)history_x1.append(x1_star)history_x2.append(x2_star)history_p1.append(p1_current)# 当前预算线x1_budget = np.linspace(0, m/p1_current, 200)x2_budget = budget_line(x1_budget, m, p1_current, p2)line_budget_current.set_data(x1_budget, x2_budget)# 当前无差异曲线x2_indiff = indifference_curve(x1, u_star, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff_current.set_data(x1, x2_indiff)# 当前均衡点point_current_eq.set_data([x1_star], [x2_star])# 均衡点轨迹iflen(history_x1) >1:path_eq.set_data(history_x1, history_x2)points_eq.set_data(history_x1[:-1], history_x2[:-1])# 显示之前的预算线和无差异曲线if frame >0andlen(history_x1) >1:prev_p1 = history_p1[-2]prev_x1 = (alpha * m) / prev_p1prev_u = utility(prev_x1, x2_star, alpha)x1_budget_prev = np.linspace(0, m/prev_p1, 200)x2_budget_prev = budget_line(x1_budget_prev, m, prev_p1, p2)line_budget_previous.set_data(x1_budget_prev, x2_budget_prev)x2_indiff_prev = indifference_curve(x1, prev_u, alpha)x2_indiff_prev = np.clip(x2_indiff_prev, 0.1100)line_indiff_previous.set_data(x1, x2_indiff_prev)text_info.set_text(f'Price Change: P₁ decreases from {p1_start} to {p1_end}\n'f'Current P₁ = {p1_current:.2f}\n'f'Equilibrium: X₁* = {x1_star:.1f}, X₂* = {x2_star:.1f}\n'f'Utility U = {u_star:.2f}\n'f'Income M = {m} (constant), P₂ = {p2} (constant)')return (line_budget_current, line_budget_previous, line_indiff_current, line_indiff_previous, points_eq, path_eq, point_current_eq, text_info)anim = FuncAnimation(fig, animate, init_func=init, frames=n_frames, interval=100, blit=True, repeat=True)anim.save(output_path, writer='pillow', fps=10, dpi=120)plt.close()print(f"✅ 动画2已保存至: {output_path}")# ==================== 动画3:收入变化 ====================def create_animation3(output_path='animation3_income_change.gif'):"""动画3:收入变化导致的均衡点动态变化展示收入消费曲线(Income Consumption Curve)的形成"""fig, ax = plt.subplots(figsize=(118), dpi=120)p1 =2# 商品1价格保持不变p2 =5# 商品2价格保持不变alpha =0.5m_start =50# 初始收入m_end =200# 最终收入n_frames =100x1 = np.linspace(0.1110500)# 初始化线条line_budget_current, = ax.plot([], [], 'b-', linewidth=3, label='Current Budget Line', alpha=0.9)line_budget_previous, = ax.plot([], [], 'b--', linewidth=2, label='Previous Budget Lines', alpha=0.4)line_indiff_current, = ax.plot([], [], 'r-', linewidth=2.5, label='Current Indifference Curve', alpha=0.9)line_indiff_previous, = ax.plot([], [], 'r--', linewidth=1.5, alpha=0.3)points_eq, = ax.plot([], [], 'go', markersize=8, alpha=0.6)path_eq, = ax.plot([], [], 'g-', linewidth=2, marker='o', markersize=4label='Income Consumption Curve', alpha=0.8)point_current_eq, = ax.plot([], [], 'ro', markersize=15, markeredgecolor='darkred'markeredgewidth=2, label='Current Equilibrium', zorder=5)text_info = ax.text(0.020.98'', transform=ax.transAxes, fontsize=11,              verticalalignment='top', bbox=dict(boxstyle='round'facecolor='lightcyan', alpha=0.9))ax.set_xlim(0110)ax.set_ylim(050)ax.set_xlabel('Good 1 (X₁)', fontsize=14, fontweight='bold')ax.set_ylabel('Good 2 (X₂)', fontsize=14, fontweight='bold')ax.set_title('Effect of Income Change on Consumer Equilibrium\n(Income Consumption Curve Formation)'fontsize=16, fontweight='bold', pad=20)ax.grid(True, alpha=0.3, linestyle='--')ax.legend(loc='upper left', fontsize=10, framealpha=0.9)history_x1, history_x2, history_m = [], [], []def init():line_budget_current.set_data([], [])line_budget_previous.set_data([], [])line_indiff_current.set_data([], [])line_indiff_previous.set_data([], [])points_eq.set_data([], [])path_eq.set_data([], [])point_current_eq.set_data([], [])text_info.set_text('')history_x1.clear()history_x2.clear()history_m.clear()return (line_budget_current, line_budget_previous, line_indiff_current, line_indiff_previous, points_eq, path_eq, point_current_eq, text_info)def animate(frame):= frame / n_framesm_current = m_start + (m_end - m_start) * tx1_star, x2_star, u_star = calculate_equilibrium(m_current, p1, p2, alpha)history_x1.append(x1_star)history_x2.append(x2_star)history_m.append(m_current)# 当前预算线x1_budget = np.linspace(0, m_current/p1, 200)x2_budget = budget_line(x1_budget, m_current, p1, p2)line_budget_current.set_data(x1_budget, x2_budget)# 当前无差异曲线x2_indiff = indifference_curve(x1, u_star, alpha)x2_indiff = np.clip(x2_indiff, 0.1100)line_indiff_current.set_data(x1, x2_indiff)# 当前均衡点point_current_eq.set_data([x1_star], [x2_star])# 均衡点轨迹iflen(history_x1) >1:path_eq.set_data(history_x1, history_x2)points_eq.set_data(history_x1[:-1], history_x2[:-1])# 显示之前的预算线和无差异曲线if frame >0andlen(history_x1) >1:prev_m = history_m[-2]prev_x1 = (alpha * prev_m) / p1prev_u = utility(prev_x1, ((1-alpha)*prev_m)/p2, alpha)x1_budget_prev = np.linspace(0, prev_m/p1, 200)x2_budget_prev = budget_line(x1_budget_prev, prev_m, p1, p2)line_budget_previous.set_data(x1_budget_prev, x2_budget_prev)x2_indiff_prev = indifference_curve(x1, prev_u, alpha)x2_indiff_prev = np.clip(x2_indiff_prev, 0.1100)line_indiff_previous.set_data(x1, x2_indiff_prev)text_info.set_text(f'Income Change: M increases from {m_start} to {m_end}\n'f'Current M = {m_current:.1f}\n'f'Equilibrium: X₁* = {x1_star:.1f}, X₂* = {x2_star:.1f}\n'f'Utility U = {u_star:.2f}\n'f'P₁ = {p1} (constant), P₂ = {p2} (constant)\n'f'ICC Slope: ΔX₂/ΔX₁ = {(1-alpha)/alpha * p1/p2:.3f}')return (line_budget_current, line_budget_previous, line_indiff_current, line_indiff_previous, points_eq, path_eq, point_current_eq, text_info)anim = FuncAnimation(fig, animate, init_func=init, frames=n_frames, interval=100, blit=True, repeat=True)anim.save(output_path, writer='pillow', fps=10, dpi=120)plt.close()print(f"✅ 动画3已保存至: {output_path}")# ==================== 主程序 ====================if__name__=="__main__":print("开始生成微观经济学消费者选择理论动画...")print("="*60)# 生成三个动画create_animation1('animation1_equilibrium_formation.gif')create_animation2('animation2_price_change.gif')create_animation3('animation3_income_change.gif')print("="*60)print("所有动画生成完成!")print("\n文件列表:")print("1. animation1_equilibrium_formation.gif - 均衡形成过程")print("2. animation2_price_change.gif - 价格变化效应")print("3. animation3_income_change.gif - 收入变化效应")

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-05-06 16:46:36 HTTP/2.0 GET : https://f.mffb.com.cn/a/486647.html
  2. 运行时间 : 0.163990s [ 吞吐率:6.10req/s ] 内存消耗:4,703.12kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=7fb2aca107a92b98a440b2a9a5ccacce
  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.000847s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000911s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000384s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000297s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000603s ]
  6. SELECT * FROM `set` [ RunTime:0.000200s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000615s ]
  8. SELECT * FROM `article` WHERE `id` = 486647 LIMIT 1 [ RunTime:0.000729s ]
  9. UPDATE `article` SET `lasttime` = 1778057196 WHERE `id` = 486647 [ RunTime:0.003333s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000322s ]
  11. SELECT * FROM `article` WHERE `id` < 486647 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000539s ]
  12. SELECT * FROM `article` WHERE `id` > 486647 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000434s ]
  13. SELECT * FROM `article` WHERE `id` < 486647 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002806s ]
  14. SELECT * FROM `article` WHERE `id` < 486647 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000702s ]
  15. SELECT * FROM `article` WHERE `id` < 486647 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000705s ]
0.168131s