当前位置:首页>python>当Python遇见数学:用代码绘制宫崎骏风格的呼吸爱心树!

当Python遇见数学:用代码绘制宫崎骏风格的呼吸爱心树!

  • 2026-06-29 03:52:19
当Python遇见数学:用代码绘制宫崎骏风格的呼吸爱心树!

💡代码也能如此浪漫?

编程只是冰冷的逻辑和枯燥的算法?

错!

今天用Python + 高等数学,创作一棵会呼吸的树——树枝随风轻摇,花瓣漫天飘落,仿佛从宫崎骏动画中走出的场景。

这不是魔法,这是数学之美


🎨 最终效果预览

看这棵树的每一个细节:

🌳 粗细分明的枝干:主干粗壮有力,枝梢纤细柔美

🍃 随风摇曳:每根树枝都在微风中轻轻摆动

🌸 花瓣飘落:樱花花瓣螺旋飘落,轨迹优美

✨ 梦幻光斑:丁达尔效应的光斑闪烁,如梦如幻

🎨 渐变天空:从浅蓝到淡紫的柔和背景

这一切,仅用 200行Python代码 实现。


🔬 背后的数学之美

1️⃣ 参数化心形方程:爱的数学表达

x=16sin³(t)y=13cos(t)-5cos(2t)-2cos(3t)-cos(4t)

这个方程由多个三角函数谐波叠加而成,展现了傅里叶分析的强大表达能力。每一个点都是精确计算的结果,完美对称,优雅至极。

2️⃣ 分形几何:自然界的自相似性

树枝的生长遵循分形原理

# 黄金角度分叉left_angle=angle-(20+depth*2)right_angle=angle+(25+depth*2)# 斐波那契比例缩减new_length=length*0.68# 接近 1/φ ≈ 0.618

主干 → 分出两根主枝

主枝 → 再分出更细的枝条

枝条 → 末端点缀绿叶

每一层都与整体相似,这就是尺度不变性,是向日葵、松果、蕨类植物的生长密码。

3️⃣ 简谐振动:生命的呼吸节奏

# 呼吸因子breath_factor=1.0+0.12*sin(2πt/T)# 树枝摇曳sway_offset=amplitude*sin(time*1.8+distance*0.7)

正弦函数模拟了:

🫁 树的呼吸:周期性缩放

🌬️ 风的吹拂:树枝左右摇摆

🌸 花瓣飘动:螺旋下落轨迹

这是简谐振动的经典应用,A为振幅,T为周期,展现生命的节律性。

4️⃣ 黄金比例 φ ≈ 1.618

fib_ratio=0.68# 接近 1/φgolden_angle=137.5°# 黄金角

为什么用这个比例?因为它是自然界最优的生长模式

🌻 向日葵种子的排列

🌲 树木分支的角度

🐚 鹦鹉螺壳的螺旋

无理数的美,在于它的无限不循环,却创造出最和谐的秩序。


💻 核心代码解析

完整代码结构

#!/usr/bin/env python3# -*- coding: utf-8 -*-"""数学之美爱心树 - 宫崎骏风格版树枝摇曳 + 花瓣飘落 + 浪漫氛围"""importosimportmathimportnumpyasnpimportcv2classGhibliHeartTree:"""宫崎骏风格爱心树"""def__init__(self,width=800,height=600):self.width=widthself.height=height@staticmethoddefget_heart_points(center_x,center_y,size=10,num_points=40):"""获取心形点集"""t=np.linspace(0,2*np.pi,num_points+1)x=16*np.sin(t)**3y=-(13*np.cos(t)-5*np.cos(2*t)-2*np.cos(3*t)-np.cos(4*t))scale=size/20x=(x*scale+center_x).astype(np.int32)y=(y*scale+center_y).astype(np.int32)returnnp.column_stack([x,y])defgenerate_tree_structure(self,max_depth=7):"""预计算树结构(包含角度信息用于摇曳)"""structure=[]defbuild_branch(x,y,length,angle,depth,base_angle):ifdepth==0:returnrad=math.radians(angle)end_x=x+length*math.sin(rad)end_y=y-length*math.cos(rad)# 存储:起点、终点、深度、基础角度、距根部距离dist_from_root=max_depth-depthstructure.append({'x1':int(x),'y1':int(y),'x2':int(end_x),'y2':int(end_y),'depth':depth,'base_angle':base_angle,'dist':dist_from_root,'length':length# 保存原始长度})golden_angle=137.5fib_ratio=0.68# 稍微增大,让树更茂盛new_length=length*fib_ratio# 左右分支角度不对称,更自然left_angle_offset=20+depth*2# 越往上分叉越大right_angle_offset=25+depth*2build_branch(end_x,end_y,new_length,angle-left_angle_offset,depth-1,base_angle-left_angle_offset)build_branch(end_x,end_y,new_length,angle+right_angle_offset,depth-1,base_angle+right_angle_offset)start_x=self.width//2start_y=self.height-30build_branch(start_x,start_y,120,0,max_depth,0)# 更大的初始长度returnstructuredefrender_ghibli_frame(self,breath_factor,time_offset,tree_structure):"""渲染宫崎骏风格帧"""# 天空渐变背景(从浅蓝到淡紫)img=np.zeros((self.height,self.width,3),dtype=np.uint8)foryinrange(self.height):ratio=y/self.height# 天空蓝 -> 淡紫色b=int(180+(140-180)*ratio)g=int(220+(180-220)*ratio)r=int(240+(200-240)*ratio)img[y,:]=[b,g,r]# 添加柔和的光晕背景center_x,center_y=self.width//2,self.height//2-100overlay=img.copy()cv2.circle(overlay,(center_x,center_y),200,(200,220,255),-1)cv2.addWeighted(overlay,0.3,img,0.7,0,img)max_depth=7# 绘制树枝(带摇曳效果,粗细分明)forbranchintree_structure:x1,y1=branch['x1'],branch['y1']base_angle=branch['base_angle']depth=branch['depth']dist=branch['dist']original_length=branch['length']# 计算摇曳偏移(越往上摇曳幅度越大)sway_amplitude=1.5*dist*0.6# 摇曳幅度sway_offset=sway_amplitude*math.sin(time_offset*1.8+dist*0.7)# 应用呼吸因子和摇曳rad=math.radians(base_angle+sway_offset)length=original_length*breath_factorend_x=int(x1+length*math.sin(rad))end_y=int(y1-length*math.cos(rad))# 树枝粗细:根据深度变化(主干粗,枝梢细)ifdepth>=5:# 主干thickness=max(3,int(depth*1.2*breath_factor))elifdepth>=3:# 中等枝条thickness=max(2,int(depth*0.9*breath_factor))else:# 细枝thickness=max(1,int(depth*0.7*breath_factor))# 树枝颜色:深棕到浅棕渐变ratio=depth/max_depthb=int(30+(70-30)*ratio)g=int(50+(90-50)*ratio)r=int(80+(140-80)*ratio)cv2.line(img,(x1,y1),(end_x,end_y),(b,g,r),thickness)# 叶子节点:绘制小圆点代表树叶(不再是爱心)ifdepth<=2:leaf_size=3+depth*2# 绿叶或樱花粉ifdepth==2:color=(100,180,120)# 嫩绿else:color=(130,200,150)# 浅绿cv2.circle(img,(end_x,end_y),leaf_size,color,-1)# 飘落的花瓣(宫崎骏风格)num_petals=15foriinrange(num_petals):# 每个花瓣有独立的运动轨迹petal_time=time_offset*0.8+i*0.7# 水平飘动(正弦波)base_x=self.width*(0.2+0.6*((i*0.618)%1))sway_x=40*math.sin(petal_time*1.5+i)# 垂直下落 + 轻微上下浮动base_y=(petal_time*50+i*40)%(self.height+100)-50float_y=15*math.sin(petal_time*2+i*0.5)px=int(base_x+sway_x)py=int(base_y+float_y)if0<=px<self.widthand0<=py<self.height:# 花瓣大小和旋转petal_size=4+2*math.sin(petal_time+i)# 创建旋转的花瓣(用小椭圆近似)petal_points=self.get_heart_points(px,py,size=petal_size,num_points=25)# 半透明樱花粉alpha=0.5+0.3*math.sin(petal_time+i)b_val=int(200*alpha)g_val=int(170*alpha)r_val=int(240*alpha)cv2.fillPoly(img,[petal_points],(b_val,g_val,r_val))# 添加梦幻光斑(丁达尔效应)for_inrange(8):spot_x=int(self.width*(0.3+0.4*math.sin(time_offset*0.5+_)))spot_y=int(self.height*(0.3+0.3*math.cos(time_offset*0.3+_*0.8)))spot_radius=30+10*math.sin(time_offset+_)overlay=img.copy()cv2.circle(overlay,(spot_x,spot_y),int(spot_radius),(220,230,255),-1)cv2.addWeighted(overlay,0.15,img,0.85,0,img)returnimgdefgenerate_animation(self,num_frames=60,save_gif=True):print(f"\n开始生成...\n")importtimestart_time=time.time()print("  🌳 预计算树结构...")tree_structure=self.generate_tree_structure(max_depth=7)print(f"  ✅ 完成({len(tree_structure)}个分支)\n")pil_frames=[]forframeinrange(num_frames):breath_factor=1.0+0.12*math.sin(2*math.pi*frame/num_frames)time_offset=frame*0.15# 时间偏移用于动画frame_bgr=self.render_ghibli_frame(breath_factor,time_offset,tree_structure)frame_rgb=cv2.cvtColor(frame_bgr,cv2.COLOR_BGR2RGB)fromPILimportImageframe_img=Image.fromarray(frame_rgb,'RGB')pil_frames.append(frame_img)if(frame+1)%10==0:elapsed=time.time()-start_timefps=(frame+1)/elapsedeta=(num_frames-frame-1)/fpsiffps>0else0print(f"  帧 {frame+1}/{num_frames} | FPS: {fps:.1f} | 剩余: {eta:.1f}s")total_time=time.time()-start_timegif_path=Noneifsave_gifandpil_frames:gif_path=os.path.join(os.path.dirname(__file__),"ghibli_heart_tree.gif")pil_frames[0].save(gif_path,save_all=True,append_images=pil_frames[1:],duration=120,loop=0,optimize=True)file_size=os.path.getsize(gif_path)/1024/1024print(f"✅ GIF已保存: {gif_path}")returngif_pathdefmain():generator=GhibliHeartTree(width=800,height=600)gif_path=generator.generate_animation(num_frames=60,save_gif=True)ifgif_path:print(f"\n🎉 完成!打开: {gif_path}")if__name__=='__main__':main()

⚠️ 关键注意事项

1. 依赖库安装

pipinstallopencv-pythonnumpyPillow

注意

✅ opencv-python:C++底层绘图,速度极快

✅ numpy:向量化计算,加速数学运算

✅ Pillow:用于保存GIF动画

2. 性能优化技巧

✅ 快的方式(OpenCV)

# C++底层实现,零Python开销cv2.line(img,(x1,y1),(x2,y2),color,thickness)

耗时:20-30秒

速度提升100倍+

3. 递归深度控制

max_depth=7# 推荐值

depth < 6:树太稀疏,不够美观

depth = 7:平衡点,枝叶茂盛

depth > 8:分支过多(2^8=256),速度慢

4. 内存管理

# 每帧生成后立即转换,避免累积frame_rgb=cv2.cvtColor(frame_bgr,cv2.COLOR_BGR2RGB)frame_img=Image.fromarray(frame_rgb,'RGB')pil_frames.append(frame_img)

60帧 × 800×600×3字节 ≈ 86MB 内存占用,确保系统有足够内存。

5. GIF文件大小优化

pil_frames[0].save(gif_path,save_all=True,append_images=pil_frames[1:],duration=120,# 每帧120ms,降低帧率减小体积loop=0,# 无限循环optimize=True# 启用优化)

duration=120:比100ms稍慢,但文件更小

optimize=True:自动压缩,减少30-50%体积

最终大小:约 2-4 MB


🎓 数学知识拓展

为什么这些公式能创造美?

1. 对称性与和谐

心形方程的完美对称,源于三角函数的周期性。数学告诉我们:对称即美

2. 自相似性与分形

树枝的分形结构,体现了部分与整体的统一。无论放大多少倍,都能看到相似的模式。

3. 黄金比例的普遍性

从原子到星系,从DNA双螺旋到银河系旋臂,黄金比例无处不在。它不是巧合,而是能量最优分布的结果。

4. 混沌中的秩序

花瓣的飘落看似随机,实则遵循确定的物理规律。确定性系统中的内在随机性,正是混沌理论的核心。


🚀 如何运行

步骤1:安装依赖

pipinstallopencv-pythonnumpyPillow

步骤2:复制代码

将完整代码保存为 mathematical_heart_tree_ghibli.py

步骤3:运行程序

pythonmathematical_heart_tree_ghibli.py

步骤4:查看结果

生成的GIF文件:ghibli_heart_tree.gif

用任意图片查看器打开!


伽利略说:

"大自然这本书是用数学语言写成的。"

这棵树不仅是代码的产物,更是:

📐 微积分的几何体现(曲线的切线与法线)

🔢 线性代数的应用(坐标变换与缩放)

🌀 非线性动力学的展示(混沌系统)

✨ 数论的美学(黄金比例的无理数之美)

🎨 复分析的可视化(心形线的复平面表示)

每一次呼吸,都是数学公式在时空中舞蹈。

编程不只是工具,它是艺术;数学不只是学科,它是诗歌。


📚 延伸阅读

《分形几何学》- Benoit Mandelbrot

《混沌:开创新科学》- James Gleick

《黄金比例:令人着迷的1.618》- Mario Livio

OpenCV官方文档:https://docs.opencv.org/


喜欢这篇文章?

❤️ 点赞 | 📤 转发 | 💬 评论

让更多人被数学之美震撼!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-04 01:27:56 HTTP/2.0 GET : https://f.mffb.com.cn/a/491256.html
  2. 运行时间 : 0.107836s [ 吞吐率:9.27req/s ] 内存消耗:4,529.79kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=d8ce0cefdcea99ac02b7976d8c164d3e
  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.000567s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000916s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000354s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000346s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000512s ]
  6. SELECT * FROM `set` [ RunTime:0.000216s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000593s ]
  8. SELECT * FROM `article` WHERE `id` = 491256 LIMIT 1 [ RunTime:0.012687s ]
  9. UPDATE `article` SET `lasttime` = 1783099676 WHERE `id` = 491256 [ RunTime:0.005670s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000258s ]
  11. SELECT * FROM `article` WHERE `id` < 491256 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000481s ]
  12. SELECT * FROM `article` WHERE `id` > 491256 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000391s ]
  13. SELECT * FROM `article` WHERE `id` < 491256 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002776s ]
  14. SELECT * FROM `article` WHERE `id` < 491256 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001210s ]
  15. SELECT * FROM `article` WHERE `id` < 491256 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002712s ]
0.109388s