当前位置:首页>python>Python绘制高颜值柱状图展示数据分布

Python绘制高颜值柱状图展示数据分布

  • 2026-06-29 19:49:59
Python绘制高颜值柱状图展示数据分布

代码绘制成果展示

此图主体由带颜色的实心柱体、垂直误差棒和半透明空心散点叠加而成,其中柱体高度代表各组样本的平均值,误差棒反映了基于当前样本量估算总体均值时的标准误(SEM),而叠加的散点则毫无保留地展示了每个独立样本的实际数值、分布形态及样本量大小。在统计学显著性标注方面,正上方明确标示了全局检验结果,例如“ANOVA P < 0.001”(代表数据满足参数检验前提),而标有“Kruskal P < 0.001”(代表采用了非参数检验),这均表明各分类下的四个分组整体上存在极显著的统计学差异;同时,内部利用带有星号的黑色阶梯状连线清晰标明了事后两两比较的具体差异水平(*代表P < 0.05,代表P < 0.01,代表P < 0.001)。

代码首先从Excel文件载入分组数据并输出描述性统计报告,随后对各组数据依次进行Shapiro-Wilk正态性检验和Levene方差齐性检验;接着依据这两项前提假设的结果进行设置,对满足参数检验条件的数据执行单因素方差分析(ANOVA)及Tukey事后多重比较,对不满足条件的数据则采用非参数的Kruskal-Wallis检验与Dunn事后比较;最终通过分析结果和内置绘制函数进行绘图,并基于内置的60套配色方案,自动化批量绘制出组合图。

代码解释

第一部分

库的导入以及字体设置
# =========================================================================================# ====================================== 1. 环境设置 =======================================# =========================================================================================import pandas as pdimport numpy as npimport matplotlib.pyplot as pltfrom scipy.stats import f_oneway, shapiro, levene, kruskalfrom statsmodels.stats.multicomp import pairwise_tukeyhsdimport scikit_posthocs as spimport matplotlib

第二部分

颜色库设置
# =========================================================================================# ======================================2.颜色库=======================================# =========================================================================================COLOR_SCHEMES = {    1: {'fill': ['#eef3f8''#e0eff2''#c0daf0''#9dabd0'], 'edge': ['#b9d8f7''#90b8f1''#6182cc''#424d95']},}

第三部分

绘图函数:画布初始化与坐标计算
# =========================================================================================# ======================================3.绘图函数=======================================# =========================================================================================def draw_custom_bar_scatter(df, stats_results,scheme_id=1, bar_width=0.14):    #创建画布    fig, ax = plt.subplots(figsize=(86), dpi=150)    groups = df['Group'].unique().tolist()  #提取组元素    features = df['Feature'].unique().tolist()  #提取组内每个住的信息    offsets = [(i - (len(features) - 1) / 2) * step for i in range(len(features))]  #柱子的X轴中心偏移量    x_base = np.arange(len(groups))  #分组位置索引    legend_handles = []  #用于保存句柄

第四部分

绘图函数:绘制带有误差棒的柱状图与散点图
    # 遍历所有特征    for i, feat inenumerate(features):        bars = ax.bar(            x_positions,  #x            means,  #y            width=bar_width,  #柱子宽            color=face_color,  #填充色            edgecolor=edge_color,  #边缘色            linewidth=1.5,  #边缘线宽            alpha=0.9,  #透明度            yerr=sems,#误差棒值            capsize=4,  #误差棒横线            error_kw={'elinewidth'1.5,  #误差棒线宽                      'ecolor': face_color},  #颜色            zorder=1  #层        )            ax.scatter(                scatter_x,#x                vals,  #y                color=face_color,  #填充颜色                edgecolor=edge_color,  #边缘颜色                s=30,#大小                alpha=1.0,  #透明度                linewidth=1.0,  #边缘线宽                zorder=3  #层            )

第五部分

绘图函数:边框、图例、刻度等细节设置
    #去掉边框线    ax.spines['right'].set_visible(False)    ax.spines['top'].set_visible(False)    #设置边框粗细    ax.spines['left'].set_linewidth(1.5)    ax.legend(legend_handles,  #句柄              features,  #文本              title='Features',  #标题              loc='upper right',  #位置              frameon=False,  #去掉边框              fontsize=12,  #字体大小              title_fontsize=14)  #图例标题字体大小

第六部分

绘图函数:绘制显著性标注线与显著性标注文本
    max_y_global = df['Value'].max()  #最大值    y_step = max_y_global * 0.08  #控制显著性标注线的位置    group_current_y = {}  #用于保存每个分组区域当前绘制到的Y轴高度        res = stats_results[group]  #分析结果                ax.plot([x1, x2], [y_pos, y_pos], lw=1.2, color='black')  #标注线的基准横线                tick_len = y_step * 0.15  #标注线两侧垂直短线长度                #绘制垂直线                ax.plot([x1, x1], [y_pos - tick_len, y_pos], lw=1.2, color='black')                ax.plot([x2, x2], [y_pos - tick_len, y_pos], lw=1.2, color='black')                #文本标注                ax.text((x1 + x2) * 0.5,  #x                        y_pos,  #y                        sig_text,  #显著性文本                        ha='center',  #水平                        va='bottom',  #垂直                        color='black',  #颜色                        fontsize=12)  #字体大小        ax.text(group_idx,  #x                y_pos_omnibus,  #y                res['omnibus_plot_text'],  # 文本                ha='center',  #水平                va='bottom',  #垂直                fontsize=12,  #字体大小                fontweight='bold',  #加粗                color='black')  #颜色        group_current_y[group] += y_step * 1.2  #更新

第七部分

执行部分:数据读取与描述性统计
# =========================================================================================# ======================================4.主程序执行=======================================# =========================================================================================if __name__ == '__main__':    data_path = r'data.xlsx' #原始数据    df_real_data = pd.read_excel(data_path) #读取    groups = df_real_data['Group'].unique().tolist() #组名    features = df_real_data['Feature'].unique().tolist() #柱子名    print(f"\n{'=' * 50}")    print("描述性统计")    print(f"{'=' * 50}")    #按列进行分组,打印描述性统计量    print(df_real_data.groupby(['Group''Feature'])['Value'].describe())

第八部分

执行部分:正态性检验
    print(f"\n{'=' * 50}")    print("正态性检验 (Shapiro-Wilk)")    print(f"{'=' * 50}")    group_shapiro_p = {} #记录每个组内最严格的正态性检验P值            vals = df_real_data[(df_real_data['Group'] == group) & (df_real_data['Feature'] == feat)]['Value']            if len(vals) >= 3:                stat, p = shapiro(vals) #正态性检验                min_p = min(min_p, p) #最小P值                print(f"{group} - {feat}: 统计量={stat:.4f}, P值={p:.4f}")        group_shapiro_p[group] = min_p #保存最小P值

第九部分

执行部分:方差齐性检验
    print(f"\n{'=' * 50}")    print("方差齐性检验 (Levene)")    print(f"{'=' * 50}")    group_levene_p = {} #用于保存方差齐性检验P值        feat_vals = [group_df[group_df['Feature'] == f]['Value'].values for f in features if len(group_df[group_df['Feature'] == f]) > 0]        if len(feat_vals) >= 2:            stat, p = levene(*feat_vals) #进行方差齐性检验,            group_levene_p[group] = p #保存            print(f"{group}: 统计量={stat:.4f}, P值={p:.4f}")        else:            group_levene_p[group] = 1.0 #无法检验,默认P值为1

第十部分

执行部分:参数与非参数检验及事后多重检验
    print(f"\n{'=' * 50}")    print("整体与事后差异检验 (动态选择)")    print(f"{'=' * 50}")        if len(feature_data) < 2:            continue            #设置显著性标记            if p_omnibus < 0.001:                omnibus_sig = "***"                omnibus_plot_text = "ANOVA $P$ < 0.001"            elif p_omnibus < 0.01:                omnibus_sig = "**"                omnibus_plot_text = f"ANOVA $P$ = {p_omnibus:.3f}"            elif p_omnibus < 0.05:                omnibus_sig = "*"                omnibus_plot_text = f"ANOVA $P$ = {p_omnibus:.3f}"            else:                omnibus_sig = "ns"                omnibus_plot_text = f"ANOVA $P$ = {p_omnibus:.3f} (ns)"            print(f"\n【{group}】 (满足参数检验前提)")            print(f" {test_name}: F={stat:.4f} | P值={p_omnibus:.4e} | 显著性={omnibus_sig}")            posthoc_pairs = [] #用于存放事后多重比较检验结果                    if p_adj < 0.001:                        sig_text = "***"                    elif p_adj < 0.01:                        sig_text = "**"                    elif p_adj < 0.05:                        sig_text = "*"                    else:                        sig_text = "ns"                    print(f" Tukey事后检验: {feat1} vs {feat2} : P-adj = {p_adj:.4e} | 显著性 = {sig_text}")                    posthoc_pairs.append((feat1, feat2, reject, sig_text))            else:                print(" P >= 0.05, 跳过Tukey HSD事后检验。")        #不满足正态分布或方差齐性        else:            stat, p_omnibus = kruskal(*feature_data) #执行非参数的Kruskal-Wallis H检验            test_name = "Kruskal" #检验方法            # 显著性标记            if p_omnibus < 0.001:                omnibus_sig = "***"                omnibus_plot_text = "Kruskal $P$ < 0.001"            elif p_omnibus < 0.01:                omnibus_sig = "**"                omnibus_plot_text = f"Kruskal $P$ = {p_omnibus:.3f}"            elif p_omnibus < 0.05:                omnibus_sig = "*"                omnibus_plot_text = f"Kruskal $P$ = {p_omnibus:.3f}"            else:                omnibus_sig = "ns"                omnibus_plot_text = f"Kruskal $P$ = {p_omnibus:.3f} (ns)"                        if p_adj < 0.001:                            sig_text = "***"                        elif p_adj < 0.01:                            sig_text = "**"                        elif p_adj < 0.05:                            sig_text = "*"                        else:                            sig_text = "ns"                        print(f" Dunn's事后检验: {feat1} vs {feat2} : P-adj = {p_adj:.4e} | 显著性 = {sig_text}")                        posthoc_pairs.append((feat1, feat2, reject, sig_text)) #保存结果            else:                print(" P >= 0.05, 跳过Dunn's事后检验。")        #汇总结果        stats_results[group] = {            'omnibus_plot_text': omnibus_plot_text,            'posthoc_pairs': posthoc_pairs        }

第十一部分

执行部分:绘图
    target_bar_width = 0.14 #柱子宽    plot_all = True #是否批量绘图    if plot_all:        for i in COLOR_SCHEMES.keys():            draw_custom_bar_scatter(df_real_data, #原始数据                                    stats_results, #统计结果                                    scheme_id=i, #配色方案                                    bar_width=target_bar_width) #柱子宽    else:        TARGET_SCHEME = 1        draw_custom_bar_scatter(df_real_data, stats_results,scheme_id=TARGET_SCHEME,bar_width=target_bar_width)

如何应用到你自己的数据

1.设置配色方案,执行部分:

data_path = r'\data.xlsx' #原始数据

2.读取数据,执行部分:

groups = df_real_data['Group'].unique().tolist() #组名features = df_real_data['Feature'].unique().tolist() #柱子名

3.设置是否进行批量绘图,执行部分:

plot_all = True #是否批量绘图

4.设置绘图结果的保存地址,执行部分:

plt.savefig(rf'result_plot_{scheme_id}.png', dpi=300,bbox_inches='tight')

推荐

期刊图片复现|Python绘制二维偏依赖PDP图
期刊复现|python绘制基于SHAP分析和GAM模型拟合的单特征依赖图
期刊图片复现|python绘制带有渐变颜色shap特征重要性组合图(条形图+蜂巢图)
期刊复现|用Python绘制SHAP特征重要性总览图、依赖图、双特征交互效应SHAP图,解锁XGBoost模型的终极奥秘
期刊图片复现|Python绘制shap重要性蜂巢图+单特征依赖图+交互效应强度气泡图+交互效应依赖图(回归+二分类+分类)

获取方式

公众号中的所有所有的免费代码都已经下架了,都并入到付费部分里了,付费合集代码和数据的购买通道已经开通,全部合集100元,后续将会持续更新,决定购买请后台私信我,注意只会分享练习数据和代码文件,不会提供答疑服务,代码文件中已经包含了每行代码的完整注释,购买前请确保真的需要!!!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-04 05:17:31 HTTP/2.0 GET : https://f.mffb.com.cn/a/491950.html
  2. 运行时间 : 0.148315s [ 吞吐率:6.74req/s ] 内存消耗:4,460.12kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=30d5af5019aaa52751eb4fb6f859b9de
  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.000912s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001576s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000722s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000729s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001356s ]
  6. SELECT * FROM `set` [ RunTime:0.000548s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001418s ]
  8. SELECT * FROM `article` WHERE `id` = 491950 LIMIT 1 [ RunTime:0.001098s ]
  9. UPDATE `article` SET `lasttime` = 1783113451 WHERE `id` = 491950 [ RunTime:0.037000s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000409s ]
  11. SELECT * FROM `article` WHERE `id` < 491950 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000997s ]
  12. SELECT * FROM `article` WHERE `id` > 491950 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004037s ]
  13. SELECT * FROM `article` WHERE `id` < 491950 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001492s ]
  14. SELECT * FROM `article` WHERE `id` < 491950 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.006255s ]
  15. SELECT * FROM `article` WHERE `id` < 491950 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001992s ]
0.151798s