当前位置:首页>python>为什么用 Python 也很难预测股市?数学告诉你真相

为什么用 Python 也很难预测股市?数学告诉你真相

  • 2026-04-19 07:24:40
为什么用 Python 也很难预测股市?数学告诉你真相

2026年重磅升级已全面落地!欢迎加入专注财经数据与量化投研的【数据科学实战】知识星球!您将获取持续更新的《财经数据宝典》与《量化投研宝典》,双典协同提供系统化指引;星球内含 350 篇以上独有高质量文章,深度覆盖策略开发、因子分析、风险管理等核心领域,内容基本每日更新;同步推出的「量化因子专题教程」系列(含完整可运行代码与实战案例),系统详解因子构建、回测与优化全流程,并实现日更迭代。我们持续扩充独家内容资源,全方位赋能您的投研效率与专业成长。无论您是量化新手还是资深研究者,这里都是助您少走弯路、事半功倍的理想伙伴,携手共探数据驱动的投资未来!

为什么用 Python 也很难预测股市?数学告诉你真相

引言

作为 Python 学习者,你一定想过:既然我会写代码、会用机器学习,能不能用 Python 预测股市赚点钱?

这个想法很自然。毕竟 Python 有 pandas、scikit-learn、TensorFlow 这些强大的工具,处理数据、训练模型都不在话下。但现实往往比代码更复杂。

最近读到一篇文章,从数学角度解释了为什么市场预测如此困难。今天我就用 Python 代码来帮你理解这些概念,让你在学习量化投资之前,先搞清楚数学层面的限制。

一、随机游走:今天的价格预测不了明天

股票价格最经典的模型之一是「随机游走」(Random Walk)。简单说,就像抛硬币:正面涨、反面跌,每一步都是随机的。

这个理论和「有效市场假说」相关——如果所有信息都已经反映在价格中,那明天的变化就只取决于新信息,而新信息本质上是不可预测的。

用 Python 模拟一下:

import numpy as npimport matplotlib.pyplot as plt# 设置随机种子,保证结果可复现np.random.seed(42)# 模拟随机游走# 每天涨跌是随机的,就像抛硬币days = 252  # 一年的交易日initial_price = 100  # 初始价格# 生成随机涨跌(均值为 0,标准差为 2)random_changes = np.random.normal(0, 2, days)# 计算价格路径prices = [initial_price]for change in random_changes:    prices.append(prices[-1] + change)# 绘图plt.figure(figsize=(10, 6))plt.plot(prices)plt.title('随机游走模拟的股价走势')plt.xlabel('交易日')plt.ylabel('价格')plt.show()

运行几次你会发现,每次生成的「股价」走势都完全不同。这就是随机游走的本质:过去的走势无法预测未来。

二、混沌理论:蝴蝶效应让预测失效

有人说:股市不是完全随机的,它有规律,只是我们没发现而已。

这话有一定道理,但问题在于「混沌系统」。混沌系统的特点是:初始条件的微小差异会导致结果的巨大不同——这就是著名的「蝴蝶效应」。

用 Python 演示一个经典的混沌系统——Logistic 映射:

import numpy as npimport matplotlib.pyplot as pltdef logistic_map(r, x0, iterations):    """    Logistic 映射:一个简单但能产生混沌的函数    r: 参数,控制系统行为    x0: 初始值    iterations: 迭代次数    """    results = [x0]    x = x0    for _ in range(iterations):        x = r * x * (1 - x)  # 混沌公式        results.append(x)    return results# 两个非常接近的初始值x1 = 0.5x2 = 0.500001  # 只差 0.000001r = 3.9  # 混沌参数iterations = 50# 分别计算两条轨迹trajectory1 = logistic_map(r, x1, iterations)trajectory2 = logistic_map(r, x2, iterations)# 绘图对比plt.figure(figsize=(10, 6))plt.plot(trajectory1, label=f'初始值 = {x1}', alpha=0.7)plt.plot(trajectory2, label=f'初始值 = {x2}', alpha=0.7)plt.title('混沌系统:微小的初始差异导致完全不同的结果')plt.xlabel('迭代次数')plt.ylabel('值')plt.legend()plt.show()

你会看到,两条曲线一开始几乎重合,但很快就完全分道扬镳。股市中,一条小道消息、一个交易员的情绪波动,都可能成为那只「蝴蝶」。

三、肥尾分布:极端事件比你想的更常见

传统统计学假设数据服从正态分布(钟形曲线),极端事件非常罕见。但股市有「肥尾」现象——暴涨暴跌比正态分布预测的要频繁得多。

用 Python 对比一下:

import numpy as npimport matplotlib.pyplot as pltfrom scipy import stats# 生成正态分布和 t 分布(肥尾)的数据np.random.seed(42)n_samples = 10000# 正态分布:极端值很少normal_data = np.random.normal(0, 1, n_samples)# t 分布(自由度 = 3):有肥尾,极端值更多t_data = stats.t.rvs(df=3, size=n_samples)# 绘制直方图对比fig, axes = plt.subplots(1, 2, figsize=(12, 5))axes[0].hist(normal_data, bins=100, density=True, alpha=0.7)axes[0].set_title('正态分布:极端值罕见')axes[0].set_xlim(-10, 10)axes[1].hist(t_data, bins=100, density=True, alpha=0.7, color='orange')axes[1].set_title('肥尾分布:极端值更常见(类似真实股市)')axes[1].set_xlim(-10, 10)plt.tight_layout()plt.show()# 统计极端值的数量print(f"正态分布中 |值| > 3 的比例: {np.mean(np.abs(normal_data) > 3):.4f}")print(f"肥尾分布中 |值| > 3 的比例: {np.mean(np.abs(t_data) > 3):.4f}")

在投资中,那些「百年一遇」的黑天鹅事件,实际发生的频率远超正态分布的预测。2008 年金融危机、2020 年新冠熔断,都是活生生的例子。

四、过拟合陷阱:模型在历史数据上表现完美,实战中却一塌糊涂

机器学习最大的陷阱之一就是「过拟合」——模型记住了历史数据的噪声,而不是学到了真正的规律。

这在股市预测中尤其严重,因为很多看起来像规律的东西,其实只是随机噪声。

import numpy as npimport matplotlib.pyplot as pltfrom sklearn.preprocessing import PolynomialFeaturesfrom sklearn.linear_model import LinearRegression# 生成随机的「股价」数据np.random.seed(42)days = 30X = np.arange(days).reshape(-1, 1)# 真实数据 = 轻微上涨趋势 + 大量随机噪声y = 100 + 0.5 * X.flatten() + np.random.normal(0, 3, days)# 用高阶多项式拟合(过拟合的典型做法)poly = PolynomialFeatures(degree=15)  # 15 阶多项式,明显过度X_poly = poly.fit_transform(X)model = LinearRegression()model.fit(X_poly, y)# 预测X_smooth = np.linspace(0, days - 1, 100).reshape(-1, 1)X_smooth_poly = poly.transform(X_smooth)y_pred = model.predict(X_smooth_poly)# 绘图plt.figure(figsize=(10, 6))plt.scatter(X, y, label='历史数据', alpha=0.7)plt.plot(X_smooth, y_pred, 'r-', label='过拟合的模型', linewidth=2)plt.title('过拟合:模型完美拟合历史,但这不是预测能力')plt.xlabel('天数')plt.ylabel('价格')plt.legend()plt.show()print("警告:这个模型在历史数据上看起来很准,")print("但它学到的是噪声,不是真正的规律!")

研究表明,很多被学术论文发现的「市场规律」,一旦被公开并被大量交易者使用,其效果就会大幅下降。模型改变了市场本身。

五、为什么机器学习在股市上更难成功?

机器学习在图像识别、语音识别等领域非常成功,但在股市预测上却困难重重。原因在于:

第一,市场会对模型做出反应。天气预报再准确,天气也不会因此改变;但如果一个交易策略被广泛使用,市场行为就会改变,策略就会失效。

第二,市场规则不稳定。物理定律几十亿年不变,但市场参与者、监管规则、宏观环境都在不断变化。

第三,错误会不断累积。预测错误会影响下一步的决策,而错误的决策又会带来更多损失。

六、那我们还能做什么?

既然预测这么难,是不是就没办法了?当然不是。关键是转变思维:从「预测会发生什么」变成「为各种可能做好准备」。

用 Python 做一个简单的蒙特卡洛模拟,看看投资的可能结果范围:

import numpy as npimport matplotlib.pyplot as pltdef monte_carlo_simulation(    initial_investment,    annual_return,    annual_volatility,    years,    simulations):    """    蒙特卡洛模拟:模拟投资的多种可能结果    """    days = years * 252  # 交易日数量    daily_return = annual_return / 252    daily_volatility = annual_volatility / np.sqrt(252)    results = []    for _ in range(simulations):        prices = [initial_investment]        for _ in range(days):            # 每天的收益率是随机的            change = np.random.normal(daily_return, daily_volatility)            prices.append(prices[-1] * (1 + change))        results.append(prices)    return np.array(results)# 运行模拟np.random.seed(42)simulations = monte_carlo_simulation(    initial_investment=100000,  # 初始投资 10 万    annual_return=0.07,         # 假设年化收益 7%    annual_volatility=0.20,     # 年化波动率 20%    years=10,                   # 投资 10 年    simulations=1000            # 模拟 1000 次)# 绘图plt.figure(figsize=(12, 6))for i in range(100):  # 只画 100 条路径,避免太乱    plt.plot(simulations[i], alpha=0.1, color='blue')# 画出中位数和 5%/95% 分位数median = np.median(simulations, axis=0)percentile_5 = np.percentile(simulations, 5, axis=0)percentile_95 = np.percentile(simulations, 95, axis=0)plt.plot(median, 'r-', linewidth=2, label='中位数')plt.plot(percentile_5, 'g--', linewidth=2, label='5% 分位数(较差情况)')plt.plot(percentile_95, 'g--', linewidth=2, label='95% 分位数(较好情况)')plt.title('蒙特卡洛模拟:10 年投资的可能结果范围')plt.xlabel('交易日')plt.ylabel('投资组合价值')plt.legend()plt.show()# 输出统计结果final_values = simulations[:, -1]print(f"10 年后的投资结果统计(初始投资 10 万):")print(f"  中位数: {np.median(final_values):,.0f} 元")print(f"  最好的 5%: 超过 {np.percentile(final_values, 95):,.0f} 元")print(f"  最差的 5%: 低于 {np.percentile(final_values, 5):,.0f} 元")print(f"  亏损的概率: {np.mean(final_values < 100000):.1%}")

这种思维方式的核心是:我们无法预测具体会发生什么,但我们可以评估各种情况的可能性,并为最坏的情况做好准备。

总结

通过这篇文章,我们用 Python 代码理解了几个关键概念:

随机游走告诉我们,如果信息已经反映在价格中,过去的走势就无法预测未来。

混沌理论告诉我们,即使市场有规律,微小的初始差异也会导致完全不同的结果。

肥尾分布告诉我们,极端事件比我们想象的更常见,不能用正态分布的思维来做风险管理。

过拟合陷阱告诉我们,模型在历史数据上表现好,不代表能预测未来。

机器学习的局限告诉我们,市场会对模型做出反应,这和预测天气完全不同。

所以,与其追求预测的准确性,不如学会在不确定性中做出明智的决策。这才是数学真正能教给我们的东西。

对于 Python 学习者来说,量化投资是一个很好的练手领域,但要时刻记住:代码能力是必要条件,不是充分条件。理解这些数学上的限制,会让你在这条路上走得更稳。

参考文章

  1. 1. Stock Markets for Humans: Thinking in Uncertain Systems: https://medium.com/data-science-collective/stock-markets-for-humans-thinking-in-uncertain-systems-986c08a02c10

财经数据与量化投研知识社区

2026年全面升级已落地!【数据科学实战】知识星球核心权益如下:

  1. 1. 双典系统赋能:获赠《财经数据宝典》与《量化投研宝典》完整文档,凝练多年实战经验,构建系统化知识框架;
  2. 2. 量化因子日更教程(2026重磅新增):每日更新「量化因子专题教程」,配套完整可运行代码与实战案例,深度拆解因子构建、回测与优化全流程;
  3. 3. 量化文章专题教程库:300+篇星球独有高质量教程式文章,系统覆盖策略开发、因子研究、风险管理等核心领域,内容基本每日更新,并配套精选学习资料与实战参考;
  4. 4. 量化投研实战课程:赠送《AKQuant-入门及实战》《PyBroker-入门及实战》视频课程,手把手教学,快速掌握量化策略开发技能;
  5. 5. 财经数据支持:定期更新国内外财经数据,为策略研发提供精准、可靠的数据基础;
  6. 6. 顶尖学者与行业专家分享:年度邀请学术界博士与业界资深专家开展前沿论文精讲与实战案例分享,不少于4场,直击研究前沿与产业实践;专家直连答疑:与核心开发者及领域专家实时互动,高效解决投研实战难题;
  7. 7. 专业社群与专属福利:加入高质量交流社群,获取课程折扣及更多独家资源。

星球已沉淀丰富内容生态——涵盖量化文章专题教程库、因子日更系列、高频数据集、PyBroker实战课程、专家深度分享与实时答疑服务。无论您是初探量化的学习者,还是深耕领域的从业者,这里都是助您少走弯路、高效成长的理想平台。诚邀加入,共探数据驱动的投资未来!

好文推荐

1. 用 Python 打造股票预测系统:Transformer 模型教程(一)

2. 用 Python 打造股票预测系统:Transformer 模型教程(二)

3. 用 Python 打造股票预测系统:Transformer 模型教程(三)

4. 用 Python 打造股票预测系统:Transformer 模型教程(完结)

5. 揭秘隐马尔可夫模型:因子投资的制胜武器

6. YOLO 也能预测股市涨跌?计算机视觉在股票市场预测中的应用

7. 金融 AI 助手:FinGPT 让你轻松掌握市场分析

8. 量化交易秘籍:为什么专业交易员都在用对数收益率?

9. Python 量化投资利器:Ridge、Lasso 和 Elastic Net 回归详解

10. 掌握金融波动率模型:完整 Python 实现指南

好书推荐

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-04-20 06:03:38 HTTP/2.0 GET : https://f.mffb.com.cn/a/484920.html
  2. 运行时间 : 0.095566s [ 吞吐率:10.46req/s ] 内存消耗:4,755.74kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=b4ef53e88cb19457213efc945c9ddb57
  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.000544s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000773s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000301s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000289s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000501s ]
  6. SELECT * FROM `set` [ RunTime:0.000212s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000587s ]
  8. SELECT * FROM `article` WHERE `id` = 484920 LIMIT 1 [ RunTime:0.000458s ]
  9. UPDATE `article` SET `lasttime` = 1776636218 WHERE `id` = 484920 [ RunTime:0.016610s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000338s ]
  11. SELECT * FROM `article` WHERE `id` < 484920 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000447s ]
  12. SELECT * FROM `article` WHERE `id` > 484920 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000648s ]
  13. SELECT * FROM `article` WHERE `id` < 484920 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001723s ]
  14. SELECT * FROM `article` WHERE `id` < 484920 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001347s ]
  15. SELECT * FROM `article` WHERE `id` < 484920 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000805s ]
0.096982s