当前位置:首页>python>销售冠军都在用!Python数据分析,让业绩翻倍的秘密武器

销售冠军都在用!Python数据分析,让业绩翻倍的秘密武器

  • 2026-03-25 18:25:11
销售冠军都在用!Python数据分析,让业绩翻倍的秘密武器
想象一下星期五的下午,部门总监扔给你一堆销售数据,要求你在下班之前做出数据报表,并做下分析总结,给出不同销售员业绩统计、不同产品销售额统计、区域销售情况对比分析等,为下周的销售策略做下准备,想想是不是挺崩溃?今天,Henry老师以一种全新的视角带您高效完成这件事,那就是用python做数据分析和可视化洞察。
假设我们需要处理的数据长这样:
首先安装必要的依赖库:
 pip insatll pandas matplotlib openpyxl 
  • pandas:Python的数据处理库

  • openpyxl:处理Excel文件的利器

  •  matplotlib : 可视化库,绘制各种图表

第一步:使用pandas库进行数据清洗,处理重复和缺失数据

import pandas as pdimport matplotlib.pyplot as pltimport numpy as np# 1. 读取数据df = pd.read_excel('sales_data.xlsx')print(f'原始数据形状:{df.shape}')print(f'原始数据列名:{df.columns.tolist()}')# 2. 查看数据基本信息print('\n数据基本信息:')print(df.info())# 3. 检查缺失值print('\n缺失值统计:')print(df.isnull().sum())# 4. 检查重复值print(f'\n重复订单数:{df.duplicated("订单号").sum()}')# 5. 数据类型转换# 确保销售额是数值型df['销售额'] = pd.to_numeric(df['销售额'], errors='coerce')# 确保日期是日期型df['日期'] = pd.to_datetime(df['日期'])# 6. 处理异常值(比如销售额为负或为0)print(f'\n异常销售额统计:')print(f'销售额<=0的数量:{(df["销售额"] <= 0).sum()}')print(f'销售额>10000的数量:{(df["销售额"] > 10000).sum()}')# 7. 删除异常值(这里简单处理,实际应根据业务规则)df = df[df['销售额'] > 0]df = df[df['销售额'] < 10000]  # 假设单笔不超过1万# 8. 清洗后的数据统计print(f'\n清洗后数据形状:{df.shape}')print(f'销售额范围:¥{df["销售额"].min():.2f} - ¥{df["销售额"].max():.2f}')print(f'平均销售额:¥{df["销售额"].mean():.2f}')

第二步:进行不同销售员业绩统计,使用matplotlib库绘制统计图

# 1. 按销售员统计销售额salesman_stats = df.groupby('销售员')['销售额'].agg(['sum''count''mean']).round(2)salesman_stats.columns = ['总销售额''订单数''平均客单价']salesman_stats = salesman_stats.sort_values('总销售额', ascending=False)print('\n销售员业绩统计:')print(salesman_stats)# 2. 创建销售员业绩饼图plt.figure(figsize=(125))# 子图1:销售额占比plt.subplot(121)salesman_sums = salesman_stats['总销售额']# 如果销售额太小,合并为"其他"threshold = salesman_sums.sum() * 0.05  # 5%阈值small_salesmen = salesman_sums[salesman_sums < threshold]main_salesmen = salesman_sums[salesman_sums >= threshold]if len(small_salesmen) > 0:    plot_data = pd.concat([main_salesmen, pd.Series({'其他': small_salesmen.sum()})])else:    plot_data = main_salesmen# 自定义颜色colors = plt.cm.Set3(range(len(plot_data)))# 绘制饼图wedges, texts, autotexts = plt.pie(plot_data.values,                                     labels=plot_data.index,                                    autopct='%1.1f%%',                                    colors=colors,                                    startangle=90)for text in texts:    text.set_fontsize(10)for autotext in autotexts:    autotext.set_fontsize(9)    autotext.set_color('white')plt.title('各销售员销售额占比', fontsize=14, pad=20)# 子图2:订单数占比plt.subplot(122)salesman_counts = salesman_stats['订单数']plt.pie(salesman_counts.values,         labels=salesman_counts.index,        autopct='%1.1f%%',        colors=colors,        startangle=90)plt.title('各销售员订单数占比', fontsize=14, pad=20)plt.suptitle('销售员业绩分析', fontsize=16, y=1.05)plt.tight_layout()plt.savefig('01_销售员业绩分析.png', dpi=300, bbox_inches='tight')plt.show()

运行上述程序,可直接得到不同销售员销售业绩对比饼状图,如下:

第三步:不同产品销售额统计,同样使用matplotlib库绘制统计图,代码如下:
# 1. 按产品类别统计category_stats = df.groupby('产品类别').agg({    '销售额': ['sum''count''mean'],    '订单号''nunique'}).round(2)category_stats.columns = ['总销售额''订单数''平均单价''客户数']category_stats = category_stats.sort_values(('总销售额'), ascending=False)print('\n产品类别销售统计:')print(category_stats)# 2. 按具体产品统计(取前10)product_stats = df.groupby('产品名称').agg({    '销售额': ['sum''count'],    '产品类别''first'  # 保留类别信息}).round(2)product_stats.columns = ['总销售额''销售数量''产品类别']top10_products = product_stats.nlargest(10'总销售额')print('\n销售额TOP10产品:')print(top10_products)# 3. 创建产品销售额饼图plt.figure(figsize=(146))# 子图1:产品类别占比plt.subplot(121)category_sums = category_stats['总销售额']colors = plt.cm.Paired(range(len(category_sums)))wedges, texts, autotexts = plt.pie(category_sums.values,                                     labels=category_sums.index,                                    autopct='%1.1f%%',                                    colors=colors,                                    explode=[0.05] * len(category_sums))  # 轻微分离plt.title('各产品类别销售额占比', fontsize=14, pad=20)# 子图2:TOP10产品占比plt.subplot(122)top10_sums = top10_products['总销售额']# 添加"其他"类别other_sum = product_stats['总销售额'].sum() - top10_sums.sum()plot_data = pd.concat([top10_sums, pd.Series({'其他产品': other_sum})])colors2 = plt.cm.tab20(range(len(plot_data)))plt.pie(plot_data.values,         labels=plot_data.index,        autopct='%1.1f%%',        colors=colors2,        startangle=90,        textprops={'fontsize'8})plt.title('TOP10产品销售额占比', fontsize=14, pad=20)plt.suptitle('产品销售分析', fontsize=16, y=1.05)plt.tight_layout()plt.savefig('02_产品销售分析.png', dpi=300, bbox_inches='tight')plt.show()
运行上述代码,可以直接得到不同产品销售情况统计饼图,如下:
第四步:销售洞察,区域销售对比分析,代码如下:
# 1. 选择核心产品进行分析(销售额TOP3的产品)top3_products = product_stats.nlargest(3'总销售额').index.tolist()print(f'\n选取TOP3产品进行区域对比:{top3_products}')# 2. 创建区域-产品透视表pivot_table = pd.pivot_table(    df[df['产品名称'].isin(top3_products)],  # 只取TOP3产品    values='销售额',    index='区域',    columns='产品名称',    aggfunc='sum',    fill_value=0).round(2)# 添加总计列pivot_table['总计'] = pivot_table.sum(axis=1)pivot_table = pivot_table.sort_values('总计', ascending=False)print('\n各区域TOP3产品销售情况(销售额):')print(pivot_table)# 3. 计算各区域的产品偏好(各产品销售额占比)product_ratio = pivot_table[top3_products].div(pivot_table['总计'], axis=0) * 100product_ratio = product_ratio.round(1)print('\n各区域产品偏好(%):')print(product_ratio)# 4. 绘制区域对比柱状图plt.figure(figsize=(168))# 子图1:区域产品销售额对比(堆叠柱状图)plt.subplot(221)x = range(len(pivot_table.index))bottom = np.zeros(len(pivot_table.index))colors = ['#FF6B6B''#4ECDC4''#45B7D1']for i, product in enumerate(top3_products):    plt.bar(x, pivot_table[product].values,             bottom=bottom,             label=product,            color=colors[i],            width=0.6)    bottom += pivot_table[product].valuesplt.xlabel('区域')plt.ylabel('销售额(元)')plt.title('各区域TOP3产品销售情况', fontsize=14)plt.xticks(x, pivot_table.index, rotation=45)plt.legend()# 添加数值标签for i, (idx, row) in enumerate(pivot_table.iterrows()):    total = row['总计']    plt.text(i, total + 50f'¥{total:.0f}', ha='center', va='bottom', fontsize=9)# 子图2:区域产品偏好(百分比堆叠图)plt.subplot(222)bottom = np.zeros(len(product_ratio.index))for i, product in enumerate(top3_products):    plt.bar(x, product_ratio[product].values,             bottom=bottom,             label=product,            color=colors[i],            width=0.6)    bottom += product_ratio[product].valuesplt.xlabel('区域')plt.ylabel('占比(%)')plt.title('各区域产品偏好(百分比)', fontsize=14)plt.xticks(x, product_ratio.index, rotation=45)plt.legend(loc='upper right')# 添加百分比标签for i in range(len(product_ratio.index)):    cumulative = 0    for j, product in enumerate(top3_products):        value = product_ratio[product].values[i]        if value > 5:  # 只显示大于5%的标签            plt.text(i, cumulative + value/2f'{value}%'                    ha='center', va='center', fontsize=8, color='white')        cumulative += value# 子图3:热力图形式(用颜色深浅表示销售额)plt.subplot(223)import seaborn as sns# 如果没有seaborn,用matplotlib模拟heatmap_data = pivot_table[top3_products].Tim = plt.imshow(heatmap_data.values, cmap='YlOrRd', aspect='auto')plt.xticks(range(len(heatmap_data.columns)), heatmap_data.columns, rotation=45)plt.yticks(range(len(heatmap_data.index)), heatmap_data.index)plt.title('区域-产品销售热力图', fontsize=14)# 添加颜色条plt.colorbar(im, label='销售额(元)')# 添加数值标签for i in range(len(heatmap_data.index)):    for j in range(len(heatmap_data.columns)):        text = plt.text(j, i, f'¥{heatmap_data.values[i, j]:.0f}',                       ha="center", va="center"                       color="white" if heatmap_data.values[i, j] > heatmap_data.values.max()/2 else "black")# 子图4:发现数据价值 - 寻找增长机会plt.subplot(224)# 计算各区域的平均客单价和销售效率region_metrics = df.groupby('区域').agg({    '销售额': ['mean''sum'],    '订单号''count'}).round(2)region_metrics.columns = ['平均客单价''总销售额''订单数']region_metrics['单均销售额'] = region_metrics['总销售额'] / region_metrics['订单数']# 绘制散点图:订单数 vs 平均客单价plt.scatter(region_metrics['订单数'], region_metrics['平均客单价'],            s=region_metrics['总销售额']/100,  # 点的大小表示总销售额           alpha=0.6, c=range(len(region_metrics)), cmap='viridis')# 添加区域标签for idx, row in region_metrics.iterrows():    plt.annotate(idx, (row['订单数'], row['平均客单价']),                 fontsize=9, ha='center')plt.xlabel('订单数')plt.ylabel('平均客单价(元)')plt.title('区域销售效率分析\n(点越大表示总销售额越高)', fontsize=14)# 添加趋势线z = np.polyfit(region_metrics['订单数'], region_metrics['平均客单价'], 1)p = np.poly1d(z)plt.plot(region_metrics['订单数'], p(region_metrics['订单数']),          "r--", alpha=0.5, label='趋势线')plt.legend()plt.suptitle('区域销售深度分析 - 挖掘数据价值', fontsize=16, y=1.02)plt.tight_layout()plt.savefig('03_区域销售深度分析.png', dpi=300, bbox_inches='tight')plt.show()
运行上述代码,将会得到各区域Top3产品销售情况,各区域产品偏好(百分比),区域销售热力图等全套数据分析洞察结果。

OMG!这也太香了吧!

以前加班到怀疑人生的工作,现在几分钟就搞定了!科技真的是yyds!上面代码直接复制就能用,新手也能轻松上手~

想一起变强的小伙伴:

要完整代码 → 评论区扣"666"

想学Python基础 → 回复"小白上车"

想要更多案例 → 关注我,持续更新!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 09:57:03 HTTP/2.0 GET : https://f.mffb.com.cn/a/481700.html
  2. 运行时间 : 0.218004s [ 吞吐率:4.59req/s ] 内存消耗:4,625.98kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=1f3b7a7936b93055a2b174e32c3a8bf6
  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.001104s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001577s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000725s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000736s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001510s ]
  6. SELECT * FROM `set` [ RunTime:0.000559s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001291s ]
  8. SELECT * FROM `article` WHERE `id` = 481700 LIMIT 1 [ RunTime:0.001218s ]
  9. UPDATE `article` SET `lasttime` = 1774576623 WHERE `id` = 481700 [ RunTime:0.008240s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000671s ]
  11. SELECT * FROM `article` WHERE `id` < 481700 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001073s ]
  12. SELECT * FROM `article` WHERE `id` > 481700 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000956s ]
  13. SELECT * FROM `article` WHERE `id` < 481700 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002944s ]
  14. SELECT * FROM `article` WHERE `id` < 481700 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.003153s ]
  15. SELECT * FROM `article` WHERE `id` < 481700 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.007886s ]
0.223112s