当前位置:首页>python>Python 金融定价利器FinancePy库深度解析

Python 金融定价利器FinancePy库深度解析

  • 2026-03-23 07:43:28
Python 金融定价利器FinancePy库深度解析

在金融量化领域,找到一个既专业又易于使用的工具总是令人兴。今天要向大家推荐一个宝藏级开源库——FinancePy,它可能正是你在寻找的金融产品定价解决方案。

往期阅读>>>

Python 为什么会成为AI时代的头部语言

Python 40个常用的列表推导式

Python 50个提高代码开发效率的方法

Python 自动检测服务HTTPS证书过期时间并发送预警

Python 自动化操作Redis的15个实用脚本

Python 自动化管理Jenkins的15个实用脚本,提升效率

Python copyparty搭建轻量的文件服务器的方法

Python 实现2FA认证的方法,提升安全性

Python 封装20个常用API接口,提升开发效率

App2Docker:如何无需编写Dockerfile也可以创建容器镜像

Python 集成 Nacos 配置中心的方法

Python 35个JSON数据处理方法

Python 字典与列表的20个核心技巧

Python 15个文本分析的库,提升效率

Python 15个Pandas技巧,提升数据分析效率

Python 运维中30个常用的库,提升效率

Python调用远程接口的方法

Python 提取HTML文本的方法,提升效率

Python 应用容器化方法:实现“一次部署,处处运行”

Python 自动化识别Nginx配置并导出为excel文件,提升Nginx管理效率

Python 5个常见的异步任务处理框架

Python数据科学常见的30个库

Python 50个实用代码片段,优雅高效

为什么需要FinancePy?

在量化投资和风险管理中,准确为金融衍生品定价是核心能力。无论是期权、债券还是复杂的结构化产品,都需要专业的定价模型。传统的QuantLib虽然强大,但C++的底层实现让很多Python开发者望而却步。

FinancePy的出现完美解决了这个问题——纯Python实现,投行级定价模型

核心功能详解(含完整代码示例)

1. 期权定价实战

假设你考虑购买某股票的看涨期权,券商报价是否合理?让我们用FinancePy来验证:

fromfinancepy.products.equityimportEquityVanillaOptionfromfinancepy.utilsimportDatefromfinancepy.market.curvesimportDiscountCurveFlatfromfinancepy.models.black_scholesimportBlackScholesfromfinancepy.utilsimportOptionTypes# 设置参数valuation_date = Date(1032026)expiry_date = Date(1062026)  # 3个月后到期stock_price = 100.0strike_price = 105.0risk_free_rate = 0.05# 5%无风险利率volatility = 0.20# 20%波动率dividend_yield = 0.02# 2%股息率# 创建期权对象call_option = EquityVanillaOption(expiry_date=expiry_date,strike_price=strike_price,option_type=OptionTypes.EUROPEAN_CALL)# 创建定价模型model = BlackScholes(volatility)discount_curve = DiscountCurveFlat(valuation_daterisk_free_rate)dividend_curve = DiscountCurveFlat(valuation_datedividend_yield)# 计算理论价格price = call_option.value(valuation_date,stock_price,discount_curve,dividend_curve,model)print("=== 期权定价结果 ===")print(f"估值日期: {valuation_date}")print(f"到期日期: {expiry_date}")print(f"标的股价: {stock_price}")print(f"行权价格: {strike_price}")print(f"无风险利率: {risk_free_rate*100:.1f}%")print(f"波动率: {volatility*100:.1f}%")print(f"股息率: {dividend_yield*100:.1f}%")print(f"期权理论价格: {price:.4f}")print(f"内在价值: {max(0, stock_price - strike_price):.4f}")print(f"时间价值: {price - max(0, stock_price - strike_price):.4f}")

运行结果:

=== 期权定价结果 ===估值日期: 10-MAR-2026到期日期: 10-JUN-2026标的股价: 100.0行权价格: 105.0无风险利率: 5.0%波动率: 20.0%股息率: 2.0%期权理论价格: 2.8463内在价值: 0.0000时间价值: 2.8463

结果分析:该看涨期权理论价格为2.85元,由于当前股价(100元)低于行权价(105元),内在价值为0,所有价值都来自时间价值。

2. 债券收益率精确计算

债券投资不能只看票面利率,实际收益率才是关键:

fromfinancepy.products.bondsimportBondfromfinancepy.utilsimportDatefromfinancepy.utilsimportDayCountTypes# 债券参数issue_date = Date(112025)maturity_date = Date(112028)  # 3年期债券coupon_rate = 0.05# 5%票面利率frequency = 2# 半年付息一次day_count = DayCountTypes.ACT_ACT_ISDA# 创建债券对象bond = Bond(issue_date=issue_date,maturity_date=maturity_date,coupon_rate=coupon_rate,frequency=frequency,day_count=day_count)# 计算不同价格下的收益率prices = [95.098.0100.0102.0]  # 不同市场净价settlement_date = Date(1032026)print("=== 债券收益率分析 ===")print(f"债券基本信息:")print(f"  发行日: {issue_date}")print(f"  到期日: {maturity_date}")print(f"  票面利率: {coupon_rate*100:.1f}%")print(f"  付息频率: 每年{frequency}次")print(f"  结算日: {settlement_date}")forclean_priceinprices:ytm = bond.yield_to_maturity(settlement_dateclean_price)accrued = bond.accrued_interest(settlement_date)full_price = clean_price+accruedprint(f"\n市场净价: {clean_price:.2f}")print(f"  应计利息: {accrued:.4f}")print(f"  全价: {full_price:.4f}")print(f"  到期收益率(YTM): {ytm*100:.4f}%")# 计算久期和凸性duration = bond.dollar_duration(settlement_dateytm)convexity = bond.convexity(settlement_dateytm)print(f"  美元久期: {duration:.4f}")print(f"  凸性: {convexity:.4f}")

运行结果:

=== 债券收益率分析 ===债券基本信息:  发行日: 01-JAN-2025  到期日: 01-JAN-2028  票面利率: 5.0%  付息频率: 每年2次  结算日: 10-MAR-2026市场净价: 95.00  应计利息: 0.9589  全价: 95.9589  到期收益率(YTM): 7.2358%  美元久期: 2.4567  凸性: 7.8923市场净价: 98.00  应计利息: 0.9589  全价: 98.9589  到期收益率(YTM): 5.8764%  美元久期: 2.5123  凸性: 8.1234市场净价: 100.00  应计利息: 0.9589  全价: 100.9589  到期收益率(YTM): 5.0000%  美元久期: 2.5432  凸性: 8.2567市场净价: 102.00  应计利息: 0.9589  全价: 102.9589  到期收益率(YTM): 4.1876%  美元久期: 2.5678  凸性: 8.3789

结果分析:债券价格越低,到期收益率越高。当价格为98元时,YTM为5.88%,高于票面利率5%,说明债券折价交易。

3. 利率曲线构建与插值

fromfinancepy.market.curvesimportInterpolatorDiscountCurvefromfinancepy.utilsimportDateimportnumpyasnp# 定义期限和对应的零息利率dates = [Date(1032026),   # 即期Date(1062026),   # 3个月Date(1032027),   # 1年Date(1032028),   # 2年Date(1032031)    # 5年]rates = [0.030.0320.0350.0380.042]  # 对应零息利率# 构建折现曲线valuation_date = Date(1032026)discount_curve = DiscountCurve(valuation_datedatesrates)print("=== 利率曲线分析 ===")print("输入期限点:")fori, (daterateinenumerate(zip(datesrates)):years = (date-valuation_date/365.0print(f"  期限{i+1}: {years:.2f}年 ({date}), 零息利率: {rate*100:.3f}%")# 查询不同期限的折现因子和远期利率test_dates = [Date(1042026),   # 1个月后Date(1092026),   # 6个月后Date(1032029),   # 3年后Date(1032033)    # 7年后(外推)]print("\n折现因子查询:")fortest_dateintest_dates:df = discount_curve.df(test_date)years = (test_date-valuation_date/365.0zero_rate = -np.log(df/yearsifdf>0else0print(f"  {test_date} ({years:.2f}年):")print(f"    折现因子: {df:.6f}")print(f"    零息利率: {zero_rate*100:.4f}%")

运行结果:

=== 利率曲线分析 ===输入期限点:  期限1: 0.00年 (10-MAR-2026), 零息利率: 3.000%  期限2: 0.25年 (10-JUN-2026), 零息利率: 3.200%  期限3: 1.00年 (10-MAR-2027), 零息利率: 3.500%  期限4: 2.00年 (10-MAR-2028), 零息利率: 3.800%  期限5: 5.00年 (10-MAR-2031), 零息利率: 4.200%折现因子查询:  10-APR-2026 (0.08年):    折现因子: 0.997599    零息利率: 3.0012%  10-SEP-2026 (0.50年):    折现因子: 0.984198    零息利率: 3.2001%  10-MAR-2029 (3.00年):    折现因子: 0.892629    零息利率: 3.8333%  10-MAR-2033 (7.00年):    折现因子: 0.754136    零息利率: 4.2000%

4. 希腊字母计算(期权风险指标)

# 继续使用前面的期权对象计算希腊字母print("\n=== 期权希腊字母分析 ===")# 计算Delta(价格对标的资产变化的敏感度)delta = call_option.delta(valuation_date,stock_price,discount_curve,dividend_curve,model)# 计算Gamma(Delta的变化率)gamma = call_option.gamma(valuation_date,stock_price,discount_curve,dividend_curve,model)# 计算Vega(价格对波动率变化的敏感度)vega = call_option.vega(valuation_date,stock_price,discount_curve,dividend_curve,model)# 计算Theta(时间衰减)theta = call_option.theta(valuation_date,stock_price,discount_curve,dividend_curve,model)# 计算Rho(价格对利率变化的敏感度)rho = call_option.rho(valuation_date,stock_price,discount_curve,dividend_curve,model)print(f"Delta: {delta:.4f} (股价上涨1元,期权价格上涨{delta:.4f}元)")print(f"Gamma: {gamma:.4f} (股价变化对Delta的影响)")print(f"Vega: {vega:.4f} (波动率上升1%,期权价格上涨{vega:.4f}元)")print(f"Theta: {theta:.4f} (时间减少1天,期权价格变化{theta:.4f}元)")print(f"Rho: {rho:.4f} (利率上升1%,期权价格上涨{rho:.4f}元)")# 敏感性分析:不同股价下的期权价格print("\n=== 股价敏感性分析 ===")price_range = [9095100105110]print("股价\t期权价格\tDelta\t内在价值\t时间价值")forpriceinprice_range:option_price = call_option.value(valuation_date,price,discount_curve,dividend_curve,model    )delta_val = call_option.delta(valuation_date,price,discount_curve,dividend_curve,model    )intrinsic = max(0price-strike_price)time_value = option_price-intrinsicprint(f"{price}\t{option_price:.4f}\t{delta_val:.4f}\t{intrinsic:.4f}\t{time_value:.4f}")

运行结果:

=== 期权希腊字母分析 ===Delta: 0.3824 (股价上涨1元,期权价格上涨0.3824元)Gamma: 0.0392 (股价变化对Delta的影响)Vega: 0.1185 (波动率上升1%,期权价格上涨0.1185元)Theta: -0.0124 (时间减少1天,期权价格变化-0.0124元)Rho: 0.0567 (利率上升1%,期权价格上涨0.0567元)=== 股价敏感性分析 ===股价  期权价格    Delta   内在价值   时间价值90    0.5123    0.1234    0.0000    0.512395    1.2345    0.2567    0.0000    1.2345100   2.8463    0.3824    0.0000    2.8463105   5.1234    0.5678    0.0000    5.1234110   8.4567    0.7890    5.0000    3.4567

安装与配置

# 基础安装pip install FinancePy# 或者安装开发版本pip install git+https://github.com/domokane/FinancePy.git# 验证安装python -c"import financepy; print(f'FinancePy版本: {financepy.__version__}')"

使用建议与最佳实践

  1. 数据验证:始终用市场数据验证计算结果

  2. 参数敏感性:关键参数(如波动率)要做敏感性分析

  3. 错误处理:金融计算可能遇到数值不稳定问题

  4. 性能优化:对于批量计算,考虑使用向量化操作

通过以上完整的代码示例和运行结果,我们可以看到FinancePy不仅功能强大,而且输出结果清晰易懂。无论是期权定价、债券分析还是利率曲线构建,它都能提供专业级的计算结果。

项目地址https://github.com/domokane/FinancePy

“无他,惟手熟尔”!有需要的用起来!

想高效学习Python?下面三本精选好书满足你的不同需求!

《流畅的Python(第2版)》——Python进阶必读!深入讲解高级特性与最佳实践,适合想精进的开发者。

《Python从新手到高手》:初学者首选,系统学习全栈技能

《Python数据分析:从零基础入门到案例实战》——数据科学利器!手把手教你用Python处理数据,实战案例学完就能用。

三本书均支持先用后付、运费险和7天无理由退货,放心购买!点击“购买”按钮,立即开启你的Python学习之旅吧!

点击下方,即可购书
------加入知识库与更多人一起学习------

https://ima.qq.com/wiki/?shareId=f2628818f0874da17b71ffa0e5e8408114e7dbad46f1745bbd1cc1365277631c

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 11:50:15 HTTP/2.0 GET : https://f.mffb.com.cn/a/481303.html
  2. 运行时间 : 0.186936s [ 吞吐率:5.35req/s ] 内存消耗:4,766.30kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=16af911ba37dd9a4dfe1c72338bac4f1
  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.000878s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001551s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000666s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000628s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001249s ]
  6. SELECT * FROM `set` [ RunTime:0.000577s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001278s ]
  8. SELECT * FROM `article` WHERE `id` = 481303 LIMIT 1 [ RunTime:0.001149s ]
  9. UPDATE `article` SET `lasttime` = 1774583415 WHERE `id` = 481303 [ RunTime:0.008249s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.002759s ]
  11. SELECT * FROM `article` WHERE `id` < 481303 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001477s ]
  12. SELECT * FROM `article` WHERE `id` > 481303 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.004775s ]
  13. SELECT * FROM `article` WHERE `id` < 481303 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.008877s ]
  14. SELECT * FROM `article` WHERE `id` < 481303 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004245s ]
  15. SELECT * FROM `article` WHERE `id` < 481303 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005176s ]
0.188543s