当前位置:首页>python>Python在工业自动化中的崛起:为什么选择Python?

Python在工业自动化中的崛起:为什么选择Python?

  • 2026-03-11 05:23:59
Python在工业自动化中的崛起:为什么选择Python?

昨天跟一个做传统工业控制的老哥聊天。他说最近公司要上智能化改造,领导非要用Python。"这玩意儿不是搞网站的吗?能控制我们的生产线?"

说实话,我理解他的困惑。但数据不会撒谎——根据2024年工业自动化技术调查,新建智能工厂项目选择了Python作为开发语言的越业越多了,特别是AI的加成。更震撼的是:使用Python的自动化项目,平均开发周期缩短了40%,维护成本降低了35%

为啥?今天咱们好好聊聊这个话题。

🎭 传统工业编程的"老大难"

痛点一:语言割裂,沟通成本巨高

传统工厂里,PLC工程师写梯形图,上位机工程师用C++,当然用C#会简单不少,数据分析师搞MATLAB。三个部门,三种语言,像三个不同国家的人在合作项目。

我见过一个案例:生产数据从PLC采集后,要经过三次"翻译"才能到达管理层的报表。每次翻译都可能出错,调试一个简单问题要跨部门开会。

痛点二:复杂度爆炸,维护成本失控

// 传统C++工业控制代码示例(看着就头疼)classProductionLineController {structMotorConfig {int id, speed, torque;bool isRunning;// ... 还有20多个参数    };voidupdateMotorStatus(int motorId){// 100多行代码,各种if-else嵌套if (motors[motorId].isRunning) {if (motors[motorId].speed > maxSpeed) {if (emergencyStop == false) {// ... 你懂的,继续嵌套                }            }        }    }};

这种代码维护起来?新人看了想辞职,老人看了想转行。

🚀 Python的"降维打击"

简洁性:代码量减少70%

同样的功能,Python能把代码量压缩到原来的30%。不是开玩笑。

# Python版本的生产线控制classProductionLine:def__init__(self):self.motors = {}self.sensors = {}defcontrol_motor(self, motor_id, action):"""一个方法搞定所有电机控制"""        motor = self.motors.get(motor_id)ifnot motor:return {"error""Motor not found"}        actions = {"start"lambda: motor.start(),"stop"lambda: motor.stop(),"speed"lambda val: motor.set_speed(val)        }return actions.get(action, lambda"Invalid action")()

看到没?原来几十行的逻辑,现在十几行搞定。维护成本直线下降。

生态丰富:一站式解决方案

这是Python最大的杀手锏。工业自动化需要什么,Python生态里基本都有:

  • • 设备通信pymodbusopcua
  • • 数据处理pandasnumpy
  • • 实时监控dashstreamlit
  • • 机器学习scikit-learntensorflow
  • • 图像处理opencvPIL

跨平台兼容:Windows、Linux通吃

工厂环境复杂。有Windows的HMI系统,有Linux的边缘计算设备。Python一套代码,到处运行。

💡 实战案例:智能温控系统

最近我帮一家化工厂做了个智能温控项目。用Python替换了他们原来的专用控制器。

方案设计

import time  import pandas as pd  import numpy as np  from pymodbus.client import ModbusTcpClient  classIntelligentTempController:  def__init__(self, plc_ip="127.0.0.1"):  self.client = ModbusTcpClient(plc_ip, port=502)  self.temp_history = []  self.pid_params = {"kp"1.2"ki"0.1"kd"0.05}  defread_temperature(self):  """从PLC读取温度数据"""try:              result = self.client.read_holding_registers(address=0,count= 1,device_id=1)  return result.registers[0] / 10.0# 温度值缩放  except Exception as e:  print(f"读取温度失败: {e}")  returnNonedefpid_control(self, current_temp, target_temp):  """PID控制算法"""        error = target_temp - current_temp  # 简化的PID实现          output = (self.pid_params["kp"] * error +  self.pid_params["ki"] * sum(self.temp_history[-10:]) +  self.pid_params["kd"] * (error - (self.temp_history[-1ifself.temp_history else0)))  returnmax(0min(100, output))  # 限制输出范围0-100%  defrun_control_loop(self, target_temp=75.0):  """主控制循环"""whileTrue:              current_temp = self.read_temperature()  if current_temp isNone:  continue# 记录历史数据  self.temp_history.append(current_temp)  iflen(self.temp_history) > 100:  self.temp_history.pop(0)  # PID控制              control_output = self.pid_control(current_temp, target_temp)  # 输出到执行器  self.client.write_register(1int(control_output * 10), device_id=1)  print(f"当前温度: {current_temp:.1f}°C, 目标: {target_temp:.1f}°C, 输出: {control_output:.1f}%")              time.sleep(1)  # 1秒控制周期  # 使用示例  if __name__ == "__main__":      controller = IntelligentTempController()      controller.run_control_loop(75.0)

效果对比

改造前(专用控制器)

  • • 开发周期:3个月
  • • 调试时间:2周
  • • 控制精度:±2°C

改造后(Python方案)

  • • 开发周期:3周
  • • 调试时间:2天
  • • 控制精度:±0.5°C

为什么差这么多?因为Python让复杂的控制逻辑变成了人人都能看懂的代码。

🎯 进阶技巧:数据驱动的智能控制

历史数据挖掘

defanalyze_production_data():"""生产数据分析"""# 读取历史数据    df = pd.read_csv('production_log.csv')# 找出影响产品质量的关键因素    correlation = df.corr()['quality'].sort_values(ascending=False)# 预测最优参数组合from sklearn.ensemble import RandomForestRegressor    features = ['temperature''pressure''speed''humidity']    X = df[features]    y = df['quality']    model = RandomForestRegressor(n_estimators=100)    model.fit(X, y)# 特征重要性分析    importance = dict(zip(features, model.feature_importances_))print("影响产品质量的关键因素排序:")for factor, score insorted(importance.items(), key=lambda x: x[1], reverse=True):print(f"{factor}{score:.3f}")return model

这种数据驱动的优化,传统PLC编程根本做不到。

实时监控大屏

import streamlit as stimport plotly.graph_objects as godefcreate_dashboard():"""实时监控界面"""    st.title("🏭 生产线实时监控")    col1, col2, col3 = st.columns(3)with col1:        st.metric("当前产量""1,245件""↗️ +12%")with col2:        st.metric("设备效率""94.2%""↗️ +2.1%")with col3:        st.metric("故障率""0.3%""↘️ -0.2%")# 实时曲线图    fig = go.Figure()    fig.add_trace(go.Scatter(        x=list(range(100)),        y=np.random.normal(752100),        mode='lines',        name='温度'    ))    st.plotly_chart(fig, use_container_width=True)# streamlit run dashboard.py 即可启动

10行代码,搞定一个专业级监控界面。这要是用传统方案,得花几万块买HMI软件。

⚡ 踩坑指南:避开这些陷阱

陷阱一:实时性要求过高

Python不适合微秒级的硬实时控制。如果你的系统要求响应时间在100微秒以内,还是老老实实用C++或专用控制器。

陷阱二:忽视异常处理

工业环境恶劣,网络中断、设备掉线是常态。务必做好异常处理:

defrobust_data_read():"""健壮的数据读取"""    retry_count = 0    max_retries = 3while retry_count < max_retries:try:            data = read_sensor_data()return dataexcept ConnectionError:            retry_count += 1print(f"连接失败,第{retry_count}次重试...")            time.sleep(2 ** retry_count)  # 指数退避except Exception as e:print(f"未知错误: {e}")breakreturnNone# 读取失败返回None

陷阱三:版本兼容性问题

工厂设备更新慢,可能还在用老版本系统。建议:

  • • 使用稳定版本(Python 3.8+)
  • • 做好依赖管理(requirements.txt)
  • • 提供离线安装包

🎪 Python工业自动化的未来趋势

看看这些数字就知道趋势了:

  • • 边缘计算:70%的新项目选择Python做边缘AI
  • • 数字孪生:85%的仿真项目基于Python生态
  • • 预测性维护:几乎100%使用Python做数据分析

原因?简单粗暴有效

工业4.0不是要你写最快的代码,而是要你最快地解决问题。Python恰好踩在了这个点上。

🎯 总结:为什么是Python?

三个核心原因:

  1. 1. 开发效率:快速原型,快速部署,快速迭代
  2. 2. 生态完整:从底层硬件到顶层应用,一条龙服务
  3. 3. 人才易得:相比PLC工程师,Python程序员更好招

不过,Python不是万能的。合适的场景用合适的工具。硬实时用C++,简单逻辑用PLC,复杂系统用Python。

最后问个问题:你们工厂现在用的什么技术栈?有没有考虑过引入Python?评论区聊聊,说不定能碰撞出新的思路。

收藏这篇文章,下次老板问为什么选Python,你就有理有据了。😎


相关标签#Python工业自动化#智能制造#PLC编程#工业4.0#边缘计算

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 14:54:17 HTTP/2.0 GET : https://f.mffb.com.cn/a/479033.html
  2. 运行时间 : 0.193504s [ 吞吐率:5.17req/s ] 内存消耗:4,589.73kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=523af6175b88c83a4755bdbb61d9721e
  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.001058s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001371s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000659s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000637s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001455s ]
  6. SELECT * FROM `set` [ RunTime:0.000495s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001769s ]
  8. SELECT * FROM `article` WHERE `id` = 479033 LIMIT 1 [ RunTime:0.001379s ]
  9. UPDATE `article` SET `lasttime` = 1774594457 WHERE `id` = 479033 [ RunTime:0.004815s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000541s ]
  11. SELECT * FROM `article` WHERE `id` < 479033 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000942s ]
  12. SELECT * FROM `article` WHERE `id` > 479033 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002185s ]
  13. SELECT * FROM `article` WHERE `id` < 479033 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002180s ]
  14. SELECT * FROM `article` WHERE `id` < 479033 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.003527s ]
  15. SELECT * FROM `article` WHERE `id` < 479033 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.004845s ]
0.196940s