当前位置:首页>python>Python项目92:绘制神雕侠侣中人物的4种社交图(NetworkX+Matplotlib)

Python项目92:绘制神雕侠侣中人物的4种社交图(NetworkX+Matplotlib)

  • 2026-02-05 00:38:02
Python项目92:绘制神雕侠侣中人物的4种社交图(NetworkX+Matplotlib)

Python,速成心法

敲代码,查资料,问Ai

练习,探索,总结,优化

博文创作不易,我的博文不需要打赏,也不需要知识付费,可以白嫖学习编程小技巧。使用代码的过程中,如有疑问的地方,欢迎大家指正留言交流。喜欢的老铁可以多多点赞+收藏分享+置顶,小红牛在此表示感谢。

------★Python练手项目源码------

Python项目91:绘制红楼梦人物关系图(NetworkX+Matplotlib)

Python项目89:NetworkX最短路径规划(城市交通)

Python项目88:文件备份与压缩系统2.0(tkinter+shutil+zipfile)

Python项目86:增强版画板2.0(tk.Canvas)

Python项目81:Excel数据统计工具3.0

Python项目81:Excel工作表批量重命名工具1.0(tkinter+openpyxl)

Python项目80:Excel数据统计工具2.0

Python项目78:学生成绩分析系统(Tkinter+SQLite3)

Python项目77:模拟炒股训练系统3.0(Mplfinance+tkinter)

Python项目76:员工排班表系统1.0(tkinter+sqlite3+tkcalendar)

Python项目74:多线程数据可视化工具2.0(tkinter+matplotlib+mplcursors)

Python项目73:自动化文件备份系统1.0(tkinter)

Python项目源码71:药品管理系统1.0(tkinter+sqlite3)

Python项目源码69:Excel数据筛选器1.0(tkinter+sqlite3+pandas)

Python项目源码63:病历管理系统1.0(tkinter+sqlite3+matplotlib)

Python源码62:酒店住房管理系统1.0(tkinter+sqlite3)

Python项目源码57:数据格式转换工具1.0(csv+json+excel+sqlite3)

Python项目源码56:食堂饭卡管理系统1.0(tkinter+splite3)

Python项目源码54:员工信息管理系统2.0(tkinter+sqlite3)

Python项目源码52:模拟银行卡系统1.0(账户管理、存款、取款、转账和交易记录查询)

Python项目源码51:五子棋对战2.0(Pygame)

Python项目源码50:理发店会员管理系统1.0(tkinter+sqlite3)

Python项目源码48:正则表达式调试工具3.0(tkinter+re+requests)

Python项目源码44:图书管理系统1.0(tkinter+sqlite3)

Python项目源码42:仓库商品管理系统1.0(tkinter+sqlite3+Excel)

Python项目源码40:字符串处理工具(tkinter+入门练习)

Python项目源码39:学生积分管理系统1.0(命令行界面+Json)

Python项目源码35:音乐播放器2.0(Tkinter+mutagen)

Python项目源码33:待办事项列表应用2.0(命令行界面+Json+类)

Python项目32:订单销售额管理系统1.0(Tkinter+CSV)

Python项目源码29:学生缴费管理系统(Tkinter+CSV)

Python项目28:设计日志管理系统2.0(Tkinter+Json)

Python项目26:设计学生成绩管理系统(简易版)

安装必要的库:

pip install networkx matplotlib numpy

1.主要功能:

基础社交网络图:展示所有核心人物及其关系
带标签的关系图:显示具体的关系类型(夫妻、师徒、敌对等)
以杨过为中心的网络:突出主角的核心地位
网络属性分析:计算各种中心性指标
网络指标可视化:展示度分布、中心性排名等
2.网络分析指标:度中心性:谁的关系最多,中介中心性:谁是最重要的桥梁,紧密中心性:谁与所有人最接近,社区检测:人物自然分组,聚类系数:朋友的朋友也是朋友的程度。

3.运行代码可以看到:4种不同的可视化图表,详细的网络分析报告

,各种社交网络指标的数值分析。
图2
图3
图4

↓ 完整源码如下 ↓

# -*- coding: utf-8 -*-# @Author : 小红牛# 微信公众号:wdPythonimport networkx as nximport matplotlib.pyplot as pltimport matplotlibfrom matplotlib import font_managerimport numpy as np# 设置中文字体plt.rcParams['font.sans-serif'] = ['SimHei''Microsoft YaHei''DejaVu Sans']plt.rcParams['axes.unicode_minus'] = False# 创建社交网络图G = nx.Graph()# 定义核心人物(节点)core_characters = {    '杨过': {'role''主角''importance'10'color''red'},    '小龙女': {'role''主角''importance'10'color''pink'},    '郭靖': {'role''大侠''importance'9'color''darkgreen'},    '黄蓉': {'role''帮主''importance'9'color''orange'},    '郭芙': {'role''郭靖之女''importance'7'color''lightcoral'},    '郭襄': {'role''郭靖之女''importance'8'color''violet'},    '金轮法王': {'role''反派''importance'8'color''purple'},    '李莫愁': {'role''反派''importance'7'color''darkred'},    '陆无双': {'role''杨过义妹''importance'6'color''lightblue'},    '程英': {'role''杨过义妹''importance'6'color''lightgreen'},    '公孙止': {'role''反派''importance'6'color''brown'},    '裘千尺': {'role''反派''importance'6'color''gray'},    '周伯通': {'role''前辈''importance'7'color''cyan'},    '黄药师': {'role''前辈''importance'8'color''darkblue'},    '欧阳锋': {'role''反派前辈''importance'8'color''maroon'},    '洪七公': {'role''前辈''importance'8'color''gold'},    '一灯大师': {'role''前辈''importance'7'color''lightyellow'}}# 添加节点for char, attrs in core_characters.items():    G.add_node(char, **attrs)# 定义关系(边)和关系强度relationships = [    # 亲情关系    ('杨过''小龙女', {'relation''夫妻''strength'10'color''red'}),    ('郭靖''黄蓉', {'relation''夫妻''strength'10'color''red'}),    ('郭靖''郭芙', {'relation''父女''strength'9'color''orange'}),    ('黄蓉''郭芙', {'relation''母女''strength'9'color''orange'}),    ('郭靖''郭襄', {'relation''父女''strength'8'color''orange'}),    ('黄蓉''郭襄', {'relation''母女''strength'8'color''orange'}),    # 师徒关系    ('郭靖''杨过', {'relation''伯侄/师徒''strength'8'color''green'}),    ('小龙女''杨过', {'relation''师徒''strength'9'color''blue'}),    ('欧阳锋''杨过', {'relation''义父子/师徒''strength'8'color''blue'}),    ('洪七公''郭靖', {'relation''师徒''strength'9'color''blue'}),    ('黄药师''黄蓉', {'relation''父女/师徒''strength'9'color''blue'}),    # 朋友/义兄妹关系    ('杨过''陆无双', {'relation''义兄妹''strength'7'color''purple'}),    ('杨过''程英', {'relation''义兄妹''strength'7'color''purple'}),    ('郭靖''周伯通', {'relation''结义兄弟''strength'8'color''cyan'}),    ('郭襄''杨过', {'relation''敬慕''strength'7'color''violet'}),    # 敌对关系    ('杨过''金轮法王', {'relation''敌对''strength'8'color''black'}),    ('郭靖''金轮法王', {'relation''敌对''strength'8'color''black'}),    ('小龙女''李莫愁', {'relation''师姐妹/敌对''strength'7'color''black'}),    ('杨过''李莫愁', {'relation''敌对''strength'6'color''black'}),    ('公孙止''小龙女', {'relation''敌对/逼婚''strength'6'color''black'}),    ('公孙止''裘千尺', {'relation''夫妻/仇敌''strength'9'color''darkred'}),    # 其他重要关系    ('黄药师''杨过', {'relation''忘年交''strength'7'color''green'}),    ('周伯通''小龙女', {'relation''朋友''strength'5'color''green'}),    ('一灯大师''周伯通', {'relation''朋友''strength'6'color''green'}),    ('洪七公''欧阳锋', {'relation''宿敌/挚友''strength'9'color''brown'}),    # 新增的师徒关系    ('小龙女''李莫愁', {'relation''师姐妹''strength'6'color''darkblue'}),    ('黄药师''程英', {'relation''师徒''strength'7'color''blue'}),    ('杨过''郭芙', {'relation''世交/矛盾''strength'5'color''gray'}),]# 添加边for source, target, attrs in relationships:    G.add_edge(source, target, **attrs)# 1. 基础社交网络图def plot_basic_network():    plt.figure(figsize=(1410))    # 使用spring布局    pos = nx.spring_layout(G, k=2, seed=42)    # 根据角色类型设置节点颜色    node_colors = [core_characters[node]['color'for node in G.nodes()]    node_sizes = [core_characters[node]['importance'] * 300 for node in G.nodes()]    # 根据关系类型设置边颜色    edge_colors = [G[u][v]['color'for u, v in G.edges()]    edge_widths = [G[u][v]['strength'] * 0.5 for u, v in G.edges()]    # 绘制网络    nx.draw_networkx_nodes(G, pos, node_color=node_colors, node_size=node_sizes, alpha=0.9)    nx.draw_networkx_edges(G, pos, edge_color=edge_colors, width=edge_widths, alpha=0.7, style='solid')    nx.draw_networkx_labels(G, pos, font_size=10, font_weight='bold')    plt.title("《神雕侠侣》核心人物社交关系网络", fontsize=16, fontweight='bold')    plt.axis('off')    plt.tight_layout()    plt.show()# 2. 带关系标签的社交网络图def plot_network_with_labels():    plt.figure(figsize=(1612))    # 使用不同的布局算法    pos = nx.kamada_kawai_layout(G)    # 绘制节点    node_colors = [core_characters[node]['color'for node in G.nodes()]    node_sizes = [core_characters[node]['importance'] * 400 for node in G.nodes()]    nx.draw_networkx_nodes(G, pos, node_color=node_colors,                           node_size=node_sizes, alpha=0.9, edgecolors='black', linewidths=2)    # 绘制边    for u, v, data in G.edges(data=True):        nx.draw_networkx_edges(G, pos, edgelist=[(u, v)],                               width=data['strength']*0.6                              edge_color=data['color'],                               alpha=0.7                              style='dashed' if data['relation'in ['敌对''仇敌'else 'solid')    # 添加节点标签    nx.draw_networkx_labels(G, pos, font_size=11, font_weight='bold')    # 添加关系标签    edge_labels = {(u, v): data['relation'for u, v, data in G.edges(data=True)}    nx.draw_networkx_edge_labels(G, pos, edge_labels=edge_labels,                                 font_size=8, font_color='darkblue', alpha=0.8)    plt.title("《神雕侠侣》人物关系图(带关系类型)", fontsize=18, fontweight='bold', pad=20)    plt.axis('off')    plt.tight_layout()    plt.show()# 3. 以杨过为中心的社交网络def plot_yangguo_centered():    plt.figure(figsize=(1410))    # 创建以杨过为中心的星型布局    center_node = '杨过'    pos = {}    # 将杨过放在中心    pos[center_node] = np.array([00])    # 将与杨过直接相连的节点放在周围    neighbors = list(G.neighbors(center_node))    angles = np.linspace(02*np.pi, len(neighbors), endpoint=False)    radius = 2    for i, node in enumerate(neighbors):        pos[node] = np.array([radius * np.cos(angles[i]), radius * np.sin(angles[i])])    # 为其他节点添加位置(使用弹簧布局调整)    other_nodes = [n for n in G.nodes() if n not in pos]    if other_nodes:        subgraph = G.subgraph(other_nodes)        pos_other = nx.spring_layout(subgraph, center=[30], seed=42)        pos.update(pos_other)    # 绘制    node_colors = [core_characters[node]['color'for node in G.nodes()]    node_sizes = [core_characters[node]['importance'] * 300 for node in G.nodes()]    # 突出显示杨过    node_colors[list(G.nodes()).index('杨过')] = 'crimson'    node_sizes[list(G.nodes()).index('杨过')] = 4000    nx.draw_networkx_nodes(G, pos, node_color=node_colors, node_size=node_sizes, alpha=0.9)    # 绘制所有边    nx.draw_networkx_edges(G, pos, alpha=0.6, width=1.5)    # 突出显示与杨过相连的边    yangguo_edges = [(center_node, neighbor) for neighbor in neighbors]    nx.draw_networkx_edges(G, pos, edgelist=yangguo_edges,                           edge_color='red', width=3, alpha=0.8)    nx.draw_networkx_labels(G, pos, font_size=10, font_weight='bold')    plt.title("以杨过为中心的人物关系网络", fontsize=16, fontweight='bold')    plt.axis('off')    plt.tight_layout()    plt.show()# 4. 分析网络属性def analyze_network_properties():    print("="*60)    print("《神雕侠侣》社交网络分析报告")    print("="*60)    # 基本统计    print(f"1. 网络基本信息:")    print(f"   节点数(人物): {G.number_of_nodes()}")    print(f"   边数(关系): {G.number_of_edges()}")    # 度中心性(谁的关系最多)    degree_centrality = nx.degree_centrality(G)    top_5_degree = sorted(degree_centrality.items(), key=lambda x: x[1], reverse=True)[:5]    print(f"\n2. 度中心性排名(连接关系最多的角色):")    for char, centrality in top_5_degree:        print(f"   {char}{centrality:.3f}")    # 中介中心性(谁是最重要的桥梁)    betweenness_centrality = nx.betweenness_centrality(G)    top_5_between = sorted(betweenness_centrality.items(), key=lambda x: x[1], reverse=True)[:5]    print(f"\n3. 中介中心性排名(最重要的桥梁角色):")    for char, centrality in top_5_between:        print(f"   {char}{centrality:.3f}")    # 紧密中心性(谁与所有人最接近)    closeness_centrality = nx.closeness_centrality(G)    top_5_close = sorted(closeness_centrality.items(), key=lambda x: x[1], reverse=True)[:5]    print(f"\n4. 紧密中心性排名(与所有人最接近的角色):")    for char, centrality in top_5_close:        print(f"   {char}{centrality:.3f}")    # 社区检测(人物分组)    try:        from networkx.algorithms.community import greedy_modularity_communities        communities = list(greedy_modularity_communities(G))        print(f"\n5. 社区检测结果(人物自然分组):")        for i, community in enumerate(communities):            print(f"   第{i+1}组 ({len(community)}人): {', '.join(sorted(community))}")    except:        print("\n5. 社区检测: 需要安装python-louvain包")    # 杨过的直接关系    yangguo_neighbors = list(G.neighbors('杨过'))    print(f"\n6. 杨过的直接社会关系 ({len(yangguo_neighbors)}人):")    print(f"   {', '.join(yangguo_neighbors)}")    # 寻找关键路径    print(f"\n7. 关键人物关系路径:")    paths = [        ('郭靖''杨过'),        ('小龙女''李莫愁'),        ('黄药师''欧阳锋'),    ]    for start, end in paths:        try:            path = nx.shortest_path(G, start, end)            print(f"   {start} → {end}{' → '.join(path)}")        except:            print(f"   {start} 和 {end} 之间没有路径")# 5. 可视化网络指标def plot_network_metrics():    fig, axes = plt.subplots(22, figsize=(1512))    axes = axes.flatten()    # 1. 度分布    degrees = [d for n, d in G.degree()]    ax1 = axes[0]    ax1.hist(degrees, bins=10, alpha=0.7, color='skyblue', edgecolor='black')    ax1.set_title('节点度分布', fontsize=14, fontweight='bold')    ax1.set_xlabel('度(连接数)')    ax1.set_ylabel('频数')    ax1.grid(True, alpha=0.3)    # 2. 节点重要性(根据度中心性)    ax2 = axes[1]    degree_centrality = nx.degree_centrality(G)    chars = list(degree_centrality.keys())    values = list(degree_centrality.values())    # 取前10个角色    top_10_idx = np.argsort(values)[-10:][::-1]    top_10_chars = [chars[i] for i in top_10_idx]    top_10_values = [values[i] for i in top_10_idx]    bars = ax2.barh(top_10_chars, top_10_values, color='lightcoral')    ax2.set_title('度中心性TOP10', fontsize=14, fontweight='bold')    ax2.set_xlabel('度中心性')    ax2.invert_yaxis()    # 3. 网络聚类系数分布    ax3 = axes[2]    clustering = nx.clustering(G)    chars = list(clustering.keys())    values = list(clustering.values())    # 取前10个角色    top_10_idx = np.argsort(values)[-10:][::-1]    top_10_chars = [chars[i] for i in top_10_idx]    top_10_values = [values[i] for i in top_10_idx]    bars = ax3.bar(top_10_chars, top_10_values, color='lightgreen')    ax3.set_title('聚类系数TOP10', fontsize=14, fontweight='bold')    ax3.set_xlabel('角色')    ax3.set_ylabel('聚类系数')    ax3.tick_params(axis='x', rotation=45)    # 4. 角色类型分布    ax4 = axes[3]    role_types = {}    for char, attrs in core_characters.items():        role = attrs['role']        role_types[role] = role_types.get(role, 0) + 1    colors = plt.cm.Set3(np.linspace(01len(role_types)))    ax4.pie(role_types.values(), labels=role_types.keys(), autopct='%1.1f%%',            colors=colors, startangle=90)    ax4.set_title('角色类型分布', fontsize=14, fontweight='bold')    plt.suptitle('《神雕侠侣》社交网络分析指标', fontsize=16, fontweight='bold')    plt.tight_layout()    plt.show()# 执行所有可视化if __name__ == "__main__":    print("正在生成《神雕侠侣》社交网络分析...")    # 分析网络属性    analyze_network_properties()    # 绘制各种图表    plot_basic_network()    plot_network_with_labels()    plot_yangguo_centered()    plot_network_metrics()    print("\n分析完成!")

完毕!!感谢您的收看

------★历史博文集合★------

Python入门篇  进阶篇  视频教程  Py安装

py项目Python模块 Python爬虫  Json

Xpath正则表达式SeleniumEtreeCss

Gui程序开发TkinterPyqt5 列表元组字典

数据可视化 matplotlib  词云图Pyecharts

海龟画图PandasBug处理电脑小知识

自动化脚本编程工具NumPy CSVWeb

Pygame  图像处理  机器学习数据库

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-07 15:15:25 HTTP/2.0 GET : https://f.mffb.com.cn/a/473036.html
  2. 运行时间 : 0.311736s [ 吞吐率:3.21req/s ] 内存消耗:4,599.66kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=f4e7aed6ab1d97e9262f50e8464d868e
  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.000682s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000798s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.034641s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.017826s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000743s ]
  6. SELECT * FROM `set` [ RunTime:0.021892s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000634s ]
  8. SELECT * FROM `article` WHERE `id` = 473036 LIMIT 1 [ RunTime:0.025429s ]
  9. UPDATE `article` SET `lasttime` = 1770448525 WHERE `id` = 473036 [ RunTime:0.002649s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000668s ]
  11. SELECT * FROM `article` WHERE `id` < 473036 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.002232s ]
  12. SELECT * FROM `article` WHERE `id` > 473036 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000638s ]
  13. SELECT * FROM `article` WHERE `id` < 473036 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.009487s ]
  14. SELECT * FROM `article` WHERE `id` < 473036 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.016561s ]
  15. SELECT * FROM `article` WHERE `id` < 473036 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.100897s ]
0.313416s