当前位置:首页>python>手把手教你用Python画出高颜值统计图(完整代码版)

手把手教你用Python画出高颜值统计图(完整代码版)

  • 2026-03-26 07:30:20
手把手教你用Python画出高颜值统计图(完整代码版)

你是不是也厌倦了默认配色的“土味”图表?是不是看到别人作业里那些清新、高级、有设计感的可视化就忍不住收藏?

今天,我们不仅教大家审美,更直接送上套完整代码!复制粘贴即可运行,带你从零开始复刻那些“别人家的图表”。

🛠️ 准备工作

在开始之前,请确保你的环境已安装以下库:

pip install matplotlib numpy seaborn plotly

📊 图1:小气泡图 (Small Bubble Chart)

特点:色彩渐变温柔治愈,透明度让重叠区域更自然。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体(防止乱码,根据系统调整,Windows常用SimHei,Mac常用Arial Unicode MS)plt.rcParams['font.sans-serif'] = ['SimHei'plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据np.random.seed(42)x = np.random.rand(50)y = np.random.rand(50)colors = np.random.rand(50)       # 颜色映射值sizes = np.random.rand(50) * 500  # 气泡大小# 2. 创建画布plt.figure(figsize=(86))# 3. 绘制散点图# cmap='RdBu_r' 是红蓝反向渐变,alpha控制透明度,edgecolors给气泡加白边scatter = plt.scatter(x, y, s=sizes, c=colors, cmap='RdBu_r', alpha=0.6, edgecolors='white', linewidth=1.5)# 4. 添加颜色条cbar = plt.colorbar(scatter)cbar.set_label('数值强度', fontsize=12)# 5. 美化细节plt.title('小气泡图:渐变与透明度的艺术', fontsize=16, pad=20)plt.xlabel('X 轴', fontsize=12)plt.ylabel('Y 轴', fontsize=12)plt.grid(True, linestyle='--', alpha=0.3)# 6. 显示图表plt.tight_layout()plt.show()

运行效果:

🌀 图2:3D螺旋曲线 (3D Helix Plot)

特点:科技感拉满,沿路径渐变的色彩让空间感更强。

import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3D# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据t = np.linspace(04 * np.pi, 100)x = np.sin(t)y = np.cos(t)z = t / (4 * np.pi) - 0.5  # 高度归一化# 2. 创建3D画布fig = plt.figure(figsize=(97))ax = fig.add_subplot(111, projection='3d')# 3. 绘制散点(模拟曲线)# c=t 实现沿路径颜色渐变,cmap='plasma' 是紫粉梦幻风sc = ax.scatter(x, y, z, c=t, cmap='plasma', marker='^', s=50, edgecolors='none')# 4. 添加颜色条cbar = fig.colorbar(sc, ax=ax, shrink=0.6)cbar.set_label('时间参数 t', fontsize=12)# 5. 设置标签和标题ax.set_xlabel('X 轴', fontsize=12)ax.set_ylabel('Y 轴', fontsize=12)ax.set_zlabel('Z 轴', fontsize=12)ax.set_title('3D螺旋曲线:科技感的空间演绎', fontsize=16, pad=20)# 6. 调整视角 (可选)ax.view_init(elev=20, azim=-60)plt.tight_layout()plt.show()

运行效果:

📉 图3:三角函数阴影面积图 (Shaded Line Plot)

特点:文艺范十足,智能填充两条曲线之间的区域。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据x = np.linspace(02 * np.pi, 400)sin_x = np.sin(x)cos_x = np.cos(x)# 2. 创建画布plt.figure(figsize=(106))# 3. 绘制曲线plt.plot(x, sin_x, label='sin(x)', color='#2c3e50', linewidth=2)plt.plot(x, cos_x, label='cos(x)', color='#27ae60', linewidth=2)# 4. 填充区域 (核心技巧)# where=(sin_x >= cos_x): 只在sin大于cos的区域填充plt.fill_between(x, sin_x, cos_x, where=(sin_x >= cos_x), interpolate=True, color='#3498db', alpha=0.2, label='sin > cos')plt.fill_between(x, sin_x, cos_x, where=(sin_x < cos_x), interpolate=True, color='#e74c3c', alpha=0.2, label='sin < cos')# 5. 美化细节plt.legend(loc='upper right', frameon=False)plt.xlabel('X 轴 (弧度)', fontsize=12)plt.ylabel('函数值', fontsize=12)plt.title('三角函数阴影面积:谁大谁小一目了然', fontsize=16, pad=20)plt.grid(True, alpha=0.3, linestyle='--')# 设置X轴刻度为π的倍数plt.xticks([0, np.pi/2, np.pi, 3*np.pi/22*np.pi],            ['0''π/2''π''3π/2''2π'])plt.tight_layout()plt.show()

运行效果:

🔥 图4:热力图矩阵 (Heatmap Matrix)

特点:数据密度一目了然,自动判断文字颜色保证可读性。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据 (7行9列的随机矩阵)np.random.seed(42)data = np.random.rand(79).round(2)# 2. 创建画布plt.figure(figsize=(106))# 3. 绘制热力图# cmap='RdYlBu_r' 是红黄蓝反向,适合表现高低差异im = plt.imshow(data, cmap='RdYlBu_r', aspect='auto')# 4. 添加颜色条cbar = plt.colorbar(im)cbar.set_label('数值大小', fontsize=12)# 5. 添加数值标注 (核心技巧:根据背景深浅自动切换黑白字)for i in range(7):    for j in range(9):        text_color = 'white' if data[i, j] > 0.5 else 'black'        plt.text(j, i, f'{data[i, j]:.2f}', ha='center', va='center', color=text_color, fontsize=10, weight='bold')# 6. 设置刻度和标题plt.xticks(range(9), [f'Col {j+1}' for j in range(9)])plt.yticks(range(7), [f'Row {i+1}' for i in range(7)])plt.title('热力图矩阵:数据密度的视觉呈现', fontsize=16, pad=20)plt.tight_layout()plt.show()

运行效果:

📦 图5:自定义箱线图 (Customized Box Plot)

特点:分组对比清晰有力,莫兰迪色系让统计图不再枯燥。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据np.random.seed(42)groups = ['组别 A''组别 B''组别 C''组别 D']data = [np.random.randn(100) + i for i in range(4)]# 2. 定义配色 (莫兰迪色系)colors = ['#66c2a5''#fc8d62''#8da0cb''#e78ac3']# 3. 创建画布plt.figure(figsize=(106))# 4. 绘制箱线图# patch_artist=True 是关键,允许给箱体填充颜色bp = plt.boxplot(data, labels=groups, patch_artist=True, widths=0.6, showmeans=True, meanline=True)# 5. 自定义箱体颜色for patch, color in zip(bp['boxes'], colors):    patch.set_facecolor(color)    patch.set_edgecolor('black')    patch.set_linewidth(1.5)# 自定义中位数线for median in bp['medians']:    median.set_color('black')    median.set_linewidth(2)# 6. 美化细节plt.ylabel('数值分布', fontsize=12)plt.title('自定义箱线图:多组数据分布对比', fontsize=16, pad=20)plt.grid(axis='y', alpha=0.3, linestyle='--')plt.axhline(0, color='gray', linewidth=0.8, linestyle='-'# 参考线plt.tight_layout()plt.show()

运行效果:

📈 图6:多函数叠加比较图 (Multi-Function Comparison)

特点:动态区间标注,多种线型组合,信息丰富但不杂乱。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据x = np.linspace(04 * np.pi, 400)sin_x = np.sin(x)cos_x = np.cos(x)# 2. 创建画布plt.figure(figsize=(126))# 3. 绘制多条曲线 (不同线型)plt.plot(x, sin_x, '--', label='Sin(x)', color='#3498db', linewidth=2)plt.plot(x, cos_x, ':', label='Cos(x)', color='#e74c3c', linewidth=2)# 4. 填充差异区域plt.fill_between(x, sin_x, cos_x, where=(sin_x >= cos_x), color='#3498db', alpha=0.15, label='Sin ≥ Cos')plt.fill_between(x, sin_x, cos_x, where=(sin_x < cos_x), color='#e74c3c', alpha=0.15, label='Sin < Cos')# 5. 添加零轴参考线plt.axhline(0, color='gray', linewidth=1, linestyle='-')# 6. 美化细节plt.legend(loc='upper right', frameon=False, fontsize=12)plt.xlabel('X 轴 (弧度)', fontsize=12)plt.title('多函数叠加比较:周期与区间的博弈', fontsize=16, pad=20)plt.grid(True, alpha=0.3, linestyle='--')# 限制Y轴范围,让波形更饱满plt.ylim(-1.51.5)plt.tight_layout()plt.show()

运行效果:

🌊 图7:带噪声的面积图 (Area Chart with Noise)

特点:随机中见秩序,模拟真实数据的波动感。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 生成数据x = np.linspace(05 * np.pi, 200)# 添加随机噪声noise1 = np.random.normal(00.15, len(x))noise2 = np.random.normal(00.15, len(x))y1 = np.sin(x) + noise1y2 = np.cos(x) + noise2# 2. 创建画布plt.figure(figsize=(106))# 3. 绘制面积图# alpha较低,营造朦胧感plt.fill_between(x, y1, alpha=0.4, color='#3498db', label='正弦波 + 噪声')plt.fill_between(x, y2, alpha=0.4, color='#2ecc71', label='余弦波 + 噪声')# 可选:画出中心线让趋势更明显plt.plot(x, np.sin(x), color='#2980b9', linewidth=1, linestyle='--', alpha=0.8)plt.plot(x, np.cos(x), color='#27ae60', linewidth=1, linestyle='--', alpha=0.8)# 4. 美化细节plt.xlabel('X 轴 (弧度)', fontsize=12)plt.ylabel('振幅', fontsize=12)plt.title('带噪声的面积图:真实世界的波动', fontsize=16, pad=20)plt.legend(frameon=False, fontsize=12)plt.grid(True, alpha=0.3, linestyle='--')plt.tight_layout()plt.show()

运行效果:

🏗️ 图8:分类柱状图 (Grouped Bar Chart)

特点:三组数据错位排列,数值标签精准呈现,对比强烈。

import matplotlib.pyplot as pltimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei']plt.rcParams['axes.unicode_minus'] = False# 1. 准备数据categories = ['类别 A''类别 B''类别 C''类别 D']data1 = [5201525]data2 = [6181220]data3 = [8221723]x = np.arange(len(categories))  # 标签位置width = 0.25  # 柱子宽度# 2. 定义配色colors = ['#3498db''#f39c12''#2ecc71']# 3. 创建画布plt.figure(figsize=(106))# 4. 绘制三组柱子 (错位排列)bars1 = plt.bar(x - width, data1, width, label='数据集 1', color=colors[0])bars2 = plt.bar(x, data2, width, label='数据集 2', color=colors[1])bars3 = plt.bar(x + width, data3, width, label='数据集 3', color=colors[2])# 5. 添加数值标签 (核心技巧)def add_labels(bars):    for bar in bars:        height = bar.get_height()        plt.text(bar.get_x() + bar.get_width()/2., height + 0.5,                 f'{int(height)}',                 ha='center', va='bottom', fontsize=10, weight='bold')add_labels(bars1)add_labels(bars2)add_labels(bars3)# 6. 美化细节plt.xticks(x, categories, fontsize=12)plt.ylabel('数值', fontsize=12)plt.title('分类柱状图:多维度数据横向对比', fontsize=16, pad=20)plt.legend(frameon=False, loc='upper left')plt.grid(axis='y', alpha=0.3, linestyle='--')plt.axhline(0, color='black', linewidth=0.8)plt.tight_layout()plt.show()

运行效果:

🏗️ 图9:3D地形高程图 | 数据山脉可视化

import plotly.graph_objects as goimport numpy as npfrom scipy import ndimage# 生成地形数据x = np.linspace(-33100)y = np.linspace(-33100)X, Y = np.meshgrid(x, y)# 创建复杂地形Z1 = np.sin(np.sqrt(X**2 + Y**2))Z2 = 0.3 * np.sin(2*X) * np.cos(2*Y)Z3 = 0.2 * np.exp(-0.5*(X**2 + Y**2))Z = Z1 + Z2 + Z3 + 0.1 * np.random.randn(100100)# 平滑处理Z = ndimage.gaussian_filter(Z, sigma=1.5)fig = go.Figure(data=[go.Surface(    z=Z,    x=X,    y=Y,    colorscale='Earth',    contours={        "z": {"show"True"usecolormap"True              "highlightcolor""limegreen""project": {"z"True}}    },    lighting={        "ambient"0.8,        "diffuse"0.6,        "fresnel"0.2,        "specular"0.5,        "roughness"0.8    },    lightposition={"x"1000"y"1000"z"1000},    hoverinfo="skip")])# 添加等高线投影fig.add_trace(go.Contour(    z=Z,    x=x,    y=y,    colorscale='Earth',    showscale=False,    contours=dict(coloring='lines'),    line=dict(width=1),    hoverinfo="skip"))fig.update_layout(    title='🗻 3D数据地形图',    scene=dict(        xaxis_title='经度',        yaxis_title='纬度',        zaxis_title='海拔',        aspectratio=dict(x=1.5, y=1.5, z=0.8),        camera=dict(            eye=dict(x=1.8, y=1.8, z=0.8)        )    ),    autosize=True,    height=800,    margin=dict(l=0, r=0, b=0, t=50))fig.show()
运行效果:

🏗️ 图10:交互式极坐标雷达图 | 多维度技能评估

import plotly.graph_objects as goimport pandas as pd# 创建技能数据categories = ['Python编程''数据分析''机器学习'              '可视化''算法能力''工程能力'              '沟通协作''产品思维']values = [98798768]fig = go.Figure()# 添加雷达图fig.add_trace(go.Scatterpolar(    r=values + values[:1],  # 闭合图形    theta=categories + categories[:1],    fill='toself',    fillcolor='rgba(0, 255, 170, 0.3)',    line=dict(color='#00FFAA', width=3),    name='当前技能',    hovertemplate='<b>%{theta}</b><br>评分: %{r}/10<extra></extra>'))# 添加目标值对比target_values = [1099109879]fig.add_trace(go.Scatterpolar(    r=target_values + target_values[:1],    theta=categories + categories[:1],    fill='toself',    fillcolor='rgba(255, 0, 170, 0.2)',    line=dict(color='#FF00AA', width=2, dash='dash'),    name='目标技能',    hovertemplate='<b>%{theta}</b><br>目标: %{r}/10<extra></extra>'))fig.update_layout(    title='🎯 技能雷达图 | 个人能力评估',    polar=dict(        radialaxis=dict(            visible=True,            range=[010],            tickfont=dict(size=12),            gridcolor='rgba(255,255,255,0.3)',            linecolor='rgba(255,255,255,0.5)'        ),        angularaxis=dict(            tickfont=dict(size=13, color='white'),            gridcolor='rgba(255,255,255,0.2)',            linecolor='rgba(255,255,255,0.5)',            rotation=90        ),        bgcolor='rgba(20, 20, 40, 0.8)'    ),    showlegend=True,    legend=dict(        yanchor="top",        y=0.99,        xanchor="left",        x=0.01,        bgcolor='rgba(0,0,0,0.5)',        bordercolor='rgba(255,255,255,0.3)',        borderwidth=1    ),    paper_bgcolor='rgba(10, 10, 30, 1)',    font_color='white',    height=700)fig.show()
运行效果:

💡 结语

好的可视化不是炫技,而是让数据自己说话。这10段代码涵盖了散点、3D、面积、热力、箱线、折线、柱状等最常用的图表类型。

👉 建议操作

  • 逐段复制运行,观察效果。
  • 尝试修改 colors(颜色)、alpha(透明度)或 data(数据),看看图表会发生什么有趣的变化!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 09:53:28 HTTP/2.0 GET : https://f.mffb.com.cn/a/480741.html
  2. 运行时间 : 0.182804s [ 吞吐率:5.47req/s ] 内存消耗:4,649.59kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=57b5ba08ea137031ada37a3c9f74b797
  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.001071s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001529s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.002204s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000633s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001275s ]
  6. SELECT * FROM `set` [ RunTime:0.000514s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001439s ]
  8. SELECT * FROM `article` WHERE `id` = 480741 LIMIT 1 [ RunTime:0.001112s ]
  9. UPDATE `article` SET `lasttime` = 1774576409 WHERE `id` = 480741 [ RunTime:0.005916s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000672s ]
  11. SELECT * FROM `article` WHERE `id` < 480741 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001741s ]
  12. SELECT * FROM `article` WHERE `id` > 480741 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001132s ]
  13. SELECT * FROM `article` WHERE `id` < 480741 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002176s ]
  14. SELECT * FROM `article` WHERE `id` < 480741 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001928s ]
  15. SELECT * FROM `article` WHERE `id` < 480741 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002186s ]
0.186405s