当前位置:首页>python>多目标优化黄金组合——Python熵权-模糊综合评价

多目标优化黄金组合——Python熵权-模糊综合评价

  • 2026-07-01 03:52:04
多目标优化黄金组合——Python熵权-模糊综合评价
当多个指标相互制约、权重难以主观确定时,熵权法(EWM)客观赋权 + 模糊综合评价(FCE)科学打分,是学术界公认的高效方案。本文提供一份开箱即用的Python代码,一键完成计算、导出Excel、生成顶刊风格图表。

一、为什么选择 EWM-FCE

在多指标综合评价中,我们经常面临两个难题:

  1. 权重怎么定? 主观赋权(如AHP)容易受专家偏好影响;客观赋权(如熵权法)基于数据本身离散程度,更公正。

  2. 得分怎么算? 简单加权和忽略了指标间量纲差异,而模糊综合评价通过隶属度函数将不同指标统一到同一尺度。

熵权法 + 模糊综合评价(EWM-FCE) 的流程是:

  • 用熵权法计算各指标的信息熵 → 得到客观权重

  • 用线性加权(或更复杂的模糊算子)计算每个方案的综合得分

  • 最终排名即最优方案

该方法已广泛应用于环境质量评价、农业试验优选、项目风险评估等领域。


二、代码功能一览

下面这份完整的Python代码实现:

  1. 读取Excel数据(处理组合 + 多个指标)

  2. 正向化处理(将逆向指标转为正向)

  3. 标准化(极差归一化)

  4. 熵权法计算:指标比重矩阵 → 信息熵 → 熵权权重

  5. 模糊综合评价:线性加权计算每个处理组合的综合得分

  6. 导出6张Excel工作表:原始数据、正向化数据、标准化数据、比重矩阵、权重结果、最终排名

  7. 生成4张专业图表

    • 指标权重排序图(粉色渐变)

    • 处理组合得分排名图(森林绿渐变)

    • T×W交互热力图(双色渐变)

    • Top3组合雷达图(粉色渐变)

代码自动处理全0列除零警告文件被占用等异常,并输出高分辨率图片(600 dpi),满足期刊投稿要求。


三、完整代码与逐段解读

🧩 0. 导入库与路径设置

import osimport timeimport numpy as npimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsfrom matplotlib.colors import LinearSegmentedColormapINPUT_PATH = r"E:\DataAnalysis\Data.xlsx"SAVE_DIR = r"E:\DataAnalysis\EWM-FCE"os.makedirs(SAVE_DIR, exist_ok=True)os.makedirs(os.path.join(SAVE_DIR, "plots"), exist_ok=True)

🎨 1. 自定义配色方案

# 粉色系渐变(薄雾粉→晶石紫)pink_palette = ["#F9EDF4""#EDC9DD""#E0A5C7""#D180B1""#C15B9B""#B02F86"]custom_pink_cmap = LinearSegmentedColormap.from_list("custom_pink", pink_palette, N=256)# 森林绿单色渐变(森林绿→晨雾白绿)green_palette = ["#D4E7CF""#B8D8B0""#9CC891""#7FB873""#61A855"]custom_green_cmap = LinearSegmentedColormap.from_list("custom_green", green_palette, N=256)# 双色渐变(森林绿→浆果红)dual_palette = ["#61A855""#7FB873""#9CC891""#B8D8B0""#D4E7CF",                "#FFD6D4""#FFBAB8""#FE9E9D""#F98082""#F36069"]custom_dual_cmap = LinearSegmentedColormap.from_list("custom_dual", dual_palette, N=256)

⚙️ 2. 全局绘图风格

plt.rcParams.update({    "font.family": ["Arial""SimHei"],    "font.size"10,    "axes.titlesize"12,    "axes.labelsize"11,    "xtick.labelsize"9,    "ytick.labelsize"9,    "legend.fontsize"9,    "figure.dpi"300,    "savefig.dpi"600,    "savefig.bbox""tight",    "axes.spines.top"False,    "axes.spines.right"False,    "grid.alpha"0.3,    "grid.linestyle""--",    "axes.unicode_minus"False})
  • 中英文混排支持

  • 高分辨率输出

  • 简洁现代的风格(无顶部/右侧边框,虚线网格)


📥 3. 数据读取与预处理

df = pd.read_excel(INPUT_PATH, sheet_name="Sheet1")df_mean = df.groupby(["Treatment""Factor1""Factor2"]).mean().reset_index()group_cols = ["Treatment""Factor1""Factor2"]indicators = [col for col in df_mean.columns if col not in group_cols]

Excel包含:

  • Treatment:处理组合名称(如“A1B2”)

  • Factor1 和 Factor2:两个实验因素

  • 其余列均为数值型指标

先按三个分组变量求均值(若有重复测量),然后自动识别指标列。


🔧 4. 正向化与标准化(核心函数)

def data_preprocessing(df_mean, indicators, is_positive=None):    if is_positive is None:        is_positive = {ind: True for ind in indicators}    data_pos = df_mean[indicators].copy()    for ind in indicators:        if not is_positive[ind]:            data_pos[ind] = data_pos[ind].max() - data_pos[ind]    data_norm = pd.DataFrame()    for ind in indicators:        col_min = data_pos[ind].min()        col_max = data_pos[ind].max()        if col_max == col_min:            data_norm[ind] = 0.5   # 全列相同值,统一设为0.5,避免全0        else:            data_norm[ind] = (data_pos[ind] - col_min) / (col_max - col_min + 1e-8)    return data_pos, data_norm
  • 正向化:若某指标为逆向(越小越好),则用 最大值 - 原值 转换为正向。

  • 标准化:极差归一化,范围[0,1]。当某列所有值相等时,统一赋值为0.5,防止后续熵权计算出现log(0)


📐 5. 熵权法计算权重

def ewm_calculate_weights(data_norm):    col_sum = data_norm.sum(axis=0)    col_sum[col_sum == 0] = 1e-8    p_matrix = data_norm / col_sum    n_samples = data_norm.shape[0]    k = 1 / np.log(n_samples + 1e-8)    entropy = -k * (p_matrix * np.log(p_matrix + 1e-8)).sum(axis=0)    weights = (1 - entropy) / ((1 - entropy).sum() + 1e-8)    return p_matrix, entropy, weights
  • 比重矩阵p_matrix:每个样本在该指标上的占比。

  • 信息熵entropy:熵值越小,指标变异程度越大,权重应越高。

  • 熵权weights(1 - 熵) / 总和(1-熵)

所有分母加 1e-8 避免除零,np.log(0) 通过 +1e-8 规避。


🧮 6. 模糊综合评价(线性加权)

def fce_linear_weight(data_norm, weights):    fce_scores = np.dot(data_norm, weights.T)    return fce_scoresfce_scores = fce_linear_weight(data_norm, weights)result_df = df_mean[group_cols].copy()result_df["综合得分"] = np.round(fce_scores, 4)result_df["排名"] = result_df["综合得分"].rank(ascending=False, method="min").astype(int)
  • 综合得分 = 标准化数据 × 权重向量

  • 按得分降序排名


📎 7. 导出Excel(6张工作表,含容错处理)

timestamp = time.strftime("%Y%m%d_%H%M%S")excel_path = os.path.join(SAVE_DIR, f"EWM-FCE_计算全过程_{timestamp}.xlsx")try:    with pd.ExcelWriter(excel_path, engine="openpyxl"as writer:        df_mean.to_excel(writer, sheet_name="1_原始均值数据", index=False)        data_pos_with_group = df_mean[group_cols].join(data_pos)        data_pos_with_group.to_excel(writer, sheet_name="2_正向化数据", index=False)        data_norm_with_group = df_mean[group_cols].join(data_norm)        data_norm_with_group.to_excel(writer, sheet_name="3_标准化数据", index=False)        p_with_group = df_mean[group_cols].join(pd.DataFrame(p_matrix, columns=indicators))        p_with_group.to_excel(writer, sheet_name="4_指标比重矩阵", index=False)        weight_df = pd.DataFrame({            "指标名称": indicators,            "信息熵": np.round(entropy, 4),            "熵权权重": np.round(weights, 4),            "权重占比(%)": np.round(weights * 1002)        }).sort_values("熵权权重", ascending=False)        weight_df.to_excel(writer, sheet_name="5_指标权重结果", index=False)        result_df_sorted = result_df.sort_values("排名").reset_index(drop=True)        result_df_sorted.to_excel(writer, sheet_name="6_综合评价排名", index=False)    print(f"✅ Excel文件已保存:{excel_path}")except PermissionError:    # 如果文件被打开,自动保存备份    backup_excel_path = os.path.join(SAVE_DIR, f"EWM-FCE_计算全过程_BACKUP_{timestamp}.xlsx")    # ... 同样写入操作    print(f"⚠️ 已自动保存到备用文件:{backup_excel_path}")
  • 工作表名称清晰,便于查阅

  • 若目标Excel被打开,自动保存为_BACKUP_版本,避免程序崩溃


📊 8. 生成4张专业图表

图1:指标权重排序柱状图(粉色渐变)

plt.figure(figsize=(126))sorted_weight = weight_df.sort_values("熵权权重")colors = custom_pink_cmap(np.linspace(01, len(sorted_weight)))plt.barh(sorted_weight["指标名称"], sorted_weight["熵权权重"], color=colors, edgecolor="white")plt.xlabel("熵权权重", fontweight="bold")plt.ylabel("指标名称", fontweight="bold")plt.title("各测量指标熵权权重排序", fontweight="bold")plt.grid(axis="x")plt.savefig(os.path.join(SAVE_DIR, "plots""01_指标权重排序图.png"))
  • 横向柱状图,权重从低到高排列

  • 粉色渐变色,直观展示哪些指标对评价贡献最大


图2:处理组合综合得分排名图(森林绿渐变)

plt.figure(figsize=(107))sorted_result = result_df_sortedcolors = custom_green_cmap(np.linspace(01, len(sorted_result)))plt.barh(sorted_result["Treatment"][::-1], sorted_result["综合得分"][::-1], color=colors[::-1])plt.xlabel("模糊综合得分(越高越优)", fontweight="bold")plt.ylabel("处理组合(T×W)", fontweight="bold")plt.title("处理组合综合得分排名", fontweight="bold")plt.grid(axis="x")plt.savefig(os.path.join(SAVE_DIR, "plots""02_组合得分排名图.png"))
  • 森林绿渐变,最优组合位于顶部

  • 得分越高,颜色越深


图3:T×W交互热力图(双色渐变:森林绿→浆果红)

plt.figure(figsize=(86))heat_data = result_df.pivot_table(index="Factor1", columns="Factor2", values="综合得分", aggfunc="mean")sns.heatmap(heat_data, annot=True, cmap=custom_dual_cmap, fmt=".4f", linewidths=0.8, linecolor="white",            cbar_kws={"label""模糊综合得分"})plt.title("T×W处理组合综合得分热力图", fontweight="bold")plt.xlabel("Factor2 (W)", fontweight="bold")plt.ylabel("Factor1 (T)", fontweight="bold")plt.savefig(os.path.join(SAVE_DIR, "plots""03_TW交互热力图.png"))
  • 颜色从森林绿(低分)过渡到浆果红(高分),冷暖对比强烈

  • 每个格子显示具体得分,便于找出最优因素水平组合


图4:Top3组合雷达图(粉色渐变)

plt.figure(figsize=(88))top3_combinations = result_df_sorted.head(3)["Treatment"].tolist()plot_indicators = indicators[:8]   # 雷达图指标过多会拥挤,取前8n_plot = len(plot_indicators)angles = np.linspace(02 * np.pi, n_plot, endpoint=False).tolist()angles += angles[:1]ax = plt.subplot(111, polar=True)for i, treat in enumerate(top3_combinations):    treat_data = data_norm[df_mean["Treatment"] == treat][plot_indicators].values[0].tolist()    treat_data += treat_data[:1]    color = custom_pink_cmap(i / 3)    ax.plot(angles, treat_data, label=f"{treat}(排名{i+1})", color=color, linewidth=2)    ax.fill(angles, treat_data, color=color, alpha=0.2)ax.set_xticks(angles[:-1])ax.set_xticklabels(plot_indicators, fontsize=9)plt.title("Top3处理组合指标得分雷达图", fontweight="bold", pad=20)plt.legend(loc="upper right", bbox_to_anchor=(1.21.0))plt.savefig(os.path.join(SAVE_DIR, "plots""04_Top3组合雷达图.png"))
  • 极坐标展示前三名在各指标上的标准化得分

  • 面积越大、形状越饱满,综合表现越好

  • 适合比较不同方案的优劣势


📢 9. 控制台输出

print("="*60)print("✅ 熵权-模糊综合评价分析完成!")print(f"📂 所有文件保存路径:{SAVE_DIR}")print("="*60)best_result = result_df_sorted.iloc[0]print(f"🏆 最优处理组合:{best_result['Treatment']}")print(f"📊 综合得分:{best_result['综合得分']}")print(f"🔝 权重Top3指标:{weight_df.head(3)['指标名称'].tolist()}")print("="*60)print("🖼️ 生成图表列表:")print("  1. 01_指标权重排序图.png")print("  2. 02_组合得分排名图.png")print("  3. 03_TW交互热力图.png")print("  4. 04_Top3组合雷达图.png")print("="*60)

四、如何修改代码适配自己的数据?

  1. 修改文件路径
    INPUT_PATH = r"你的Excel文件路径"

  2. 指定正向/逆向指标
    默认所有指标均为正向(越大越好)。若有逆向指标,在调用data_preprocessing时传入字典:

is_positive = {"成本"False"缺陷率"False}data_pos, data_norm = data_preprocessing(df_mean, indicators, is_positive)

3. 调整雷达图显示的指标数量
如果指标数量超过8个,雷达图会过于拥挤,可以修改plot_indicators = indicators[:8]为其他切片或手动选择。

4. 修改配色
直接替换pink_palettegreen_palettedual_palette中的颜色码。


五、总结

📌 环境要求

  • Python 3.8+

  • 依赖库:pandasnumpymatplotlibseabornopenpyxl

  • 一键安装:pip install pandas numpy matplotlib seaborn openpyxl

💡 小提示:Excel文件中请确保第一行为列名,数值列不含文本或合并单元格。


赶快用你的代码和数据试试吧! 🚀


如果你觉得有帮助的话,欢迎点赞、收藏、转发!有任何问题或改进建议,也欢迎在评论区交流。

内容包含AI辅助创作,如有侵权,请联系删除。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-04 08:11:48 HTTP/2.0 GET : https://f.mffb.com.cn/a/488556.html
  2. 运行时间 : 0.108535s [ 吞吐率:9.21req/s ] 内存消耗:4,840.21kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=ff3f291e3c081b1ec459abd1200a16cb
  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.000609s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000752s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000347s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000274s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000470s ]
  6. SELECT * FROM `set` [ RunTime:0.000222s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000635s ]
  8. SELECT * FROM `article` WHERE `id` = 488556 LIMIT 1 [ RunTime:0.000441s ]
  9. UPDATE `article` SET `lasttime` = 1783123908 WHERE `id` = 488556 [ RunTime:0.023471s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000359s ]
  11. SELECT * FROM `article` WHERE `id` < 488556 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000566s ]
  12. SELECT * FROM `article` WHERE `id` > 488556 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002786s ]
  13. SELECT * FROM `article` WHERE `id` < 488556 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000584s ]
  14. SELECT * FROM `article` WHERE `id` < 488556 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.006860s ]
  15. SELECT * FROM `article` WHERE `id` < 488556 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.003487s ]
0.110086s