当前位置:首页>python>python程序员如何入门AI

python程序员如何入门AI

  • 2026-01-22 18:59:10
python程序员如何入门AI

咱们先掰扯掰扯,为啥Python程序员入门AI比其他语言的开发者更有优势:

首先,AI领域的主流框架全是Python生态的!TensorFlow、PyTorch、Scikit-learn这些顶流框架,官方首选支持的就是Python,文档全、教程多,遇到问题百度一下全是解决方案。你想想,要是你之前写Java或者C++,还得先从头学Python语法,而咱们Python程序员直接就能上手框架,省了至少3个月的基础学习时间。

其次,Python的语法简洁到离谱!AI开发中大部分时间都在做数据处理、模型调试,而Python的代码可读性极强,一行代码能搞定其他语言十几行的活。比如处理一个CSV数据文件,用Python的pandas库几行代码就能完成数据清洗,换成其他语言不得写半天?

最后,Python的社区支持太给力了!不管是GitHub上的开源项目,还是CSDN、Stack Overflow上的问题解答,只要你遇到AI相关的Python问题,几乎都能找到现成的解决方案。我当初入门的时候,很多模型代码都是直接拿过来改改参数就能跑通,极大降低了试错成本。

AI入门的3个核心阶段

很多Python程序员入门AI都会陷入一个误区:上来就啃深度学习的复杂模型,结果越学越懵,最后直接放弃。其实AI入门是有清晰路径的,按照“基础铺垫→工具实战→项目落地”三个阶段一步步来,保准你少走90%的弯路!

阶段1:基础铺垫(1-2个月)

这个阶段不用急着碰框架,重点是把“地基”打牢。作为Python程序员,你已经具备了编程基础,现在只需要补充两块内容:

1. 必学的数学知识(不用啃完高数)

很多人一听到“AI需要数学”就打退堂鼓,其实真不用怕!入门阶段只需要掌握这3个核心知识点:线性代数的矩阵运算(比如矩阵乘法、转置),这是AI模型的本质;概率论的概率分布、期望、方差,帮你理解模型的不确定性;微积分的导数、梯度下降基本原理,搞懂模型是怎么“学习”的。

2. Python数据分析库强化

你可能之前用过Python写爬虫、做后端,但AI开发中最常用的是数据分析库,这几个库必须熟练掌握:NumPy用于处理数值计算和矩阵运算,是AI开发的基础;Pandas专注数据清洗和处理,AI开发中80%的时间都在跟它打交道;Matplotlib/Seaborn负责数据可视化,帮你直观查看数据分布。

给大家上一段实战代码,这是AI开发中最常见的数据处理流程,跟着跑一遍就知道怎么用了:


# 1. 导入必备库

import numpy as np

import pandas as pd

import matplotlib.pyplot as plt



# 2. 读取数据(AI开发中常用CSV格式)

data = pd.read_csv('data.csv')



# 3. 数据清洗(处理缺失值、异常值)

data = data.dropna()  # 删除缺失值

data = data[(data['age'] > 0) & (data['age'] < 100)]  # 过滤异常值



# 4. 数据可视化(查看年龄分布)

plt.hist(data['age'], bins=20)

plt.xlabel('年龄')

plt.ylabel('人数')

plt.title('用户年龄分布')

plt.show()



# 5. 数据预处理(特征标准化)

from sklearn.preprocessing import StandardScaler

scaler = StandardScaler()

data['age_scaled'] = scaler.fit_transform(data[['age']])

这段代码涵盖了AI开发中数据处理的核心步骤,不管是机器学习还是深度学习,数据预处理都是第一步,一定要熟练掌握!

阶段2:工具实战(2-3个月)

基础打牢后,就可以上手AI框架了!这个阶段的核心是“先会用,再懂原理”,先通过简单的案例跑通模型,建立信心,再深入理解底层逻辑。

1. 首选框架:Scikit-learn(机器学习)

Scikit-learn是机器学习的入门神器,封装得特别好,不用写复杂的代码就能实现各种经典模型。对于Python程序员来说,上手难度几乎为零!

给大家举一个最经典的案例:房价预测(线性回归模型),这是机器学习的“Hello World”,跟着代码跑一遍,你就入门机器学习了:


# 1. 导入库和数据

from sklearn.datasets import load_boston

from sklearn.linear_model import LinearRegression

from sklearn.model_selection import train_test_split

from sklearn.metrics import mean_squared_error



# 2. 加载数据集(波士顿房价数据集)

boston = load_boston()

X = boston.data  # 特征值(比如房间数、距离市中心距离等)

y = boston.target  # 目标值(房价)



# 3. 划分训练集和测试集(AI开发必备步骤)

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)



# 4. 初始化模型并训练

model = LinearRegression()

model.fit(X_train, y_train)  # 训练模型



# 5. 模型预测

y_pred = model.predict(X_test)



# 6. 评估模型效果

mse = mean_squared_error(y_test, y_pred)

print(f'模型均方误差:{mse:.2f}')

运行这段代码,你会发现只用了不到20行代码就实现了一个房价预测模型!是不是很有成就感?这就是Scikit-learn的魅力,让你能快速体验到AI模型的效果。

2. 进阶框架:PyTorch(深度学习)

当你熟练掌握Scikit-learn后,就可以进军深度学习了。深度学习主要用于处理图像、语音、自然语言等复杂数据,而PyTorch是目前最火的深度学习框架,比TensorFlow更适合初学者。

同样给大家上一个实战案例:图像分类(识别手写数字MNIST数据集),这是深度学习的入门经典案例:


# 1. 导入库

import torch

import torch.nn as nn

import torch.optim as optim

from torchvision import datasets, transforms

from torch.utils.data import DataLoader



# 2. 数据预处理

transform = transforms.Compose([

   transforms.ToTensor(),  # 转换为张量

   transforms.Normalize((0.1307,), (0.3081,))  # 标准化

])



# 3. 加载数据集

train_dataset = datasets.MNIST('data', train=True, download=True, transform=transform)

test_dataset = datasets.MNIST('data', train=False, transform=transform)



train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)

test_loader = DataLoader(test_dataset, batch_size=64, shuffle=False)



# 4. 定义神经网络模型

class Net(nn.Module):

   def __init__(self):

       super(Net, self).__init__()

       self.fc1 = nn.Linear(28*28, 128)  # 输入层到隐藏层

       self.fc2 = nn.Linear(128, 64)     # 隐藏层

       self.fc3 = nn.Linear(64, 10)      # 输出层(10个数字类别)



   def forward(self, x):

       x = x.view(-1, 28*28)  # 展平图像(28x28像素)

       x = torch.relu(self.fc1(x))  # 激活函数

       x = torch.relu(self.fc2(x))

       x = self.fc3(x)

       return x



# 5. 初始化模型、损失函数和优化器

model = Net()

criterion = nn.CrossEntropyLoss()  # 分类问题损失函数

optimizer = optim.Adam(model.parameters(), lr=0.001)  # 优化器



# 6. 训练模型

for epoch in range(5):  # 训练5轮

   model.train()

   for batch_idx, (data, target) in enumerate(train_loader):

       optimizer.zero_grad()  # 梯度清零

       output = model(data)   # 模型预测

       loss = criterion(output, target)  # 计算损失

       loss.backward()        # 反向传播

       optimizer.step()       # 更新参数



       if batch_idx % 100 == 0:

           print(f'Epoch: {epoch}, Batch: {batch_idx}, Loss: {loss.item():.4f}')



# 7. 测试模型

model.eval()

correct = 0

with torch.no_grad():

   for data, target in test_loader:

       output = model(data)

       pred = output.argmax(dim=1, keepdim=True)

       correct += pred.eq(target.view_as(pred)).sum().item()



print(f'测试集准确率:{correct / len(test_loader.dataset):.4f}')

这段代码实现了一个简单的神经网络,用于识别手写数字,训练5轮后准确率能达到97%以上!运行的时候你会看到损失值一步步下降,准确率一步步上升,这种直观的反馈会让你对深度学习的理解更深刻。

阶段3:项目落地优化(3-4个月)

AI入门的最终目的是能独立开发项目,这个阶段的核心是“从模仿到创新”,通过实际项目巩固所学知识,同时积累实战经验。

1. 推荐入门项目(难度从低到高)

给大家推荐几个适合Python程序员的AI入门项目,跟着做一遍,你的简历上就有拿得出手的项目了:


• 低难度:电影评分预测,用Scikit-learn+Pandas就能实现,适合推荐系统入门


• 中难度:垃圾邮件识别,需要用到Scikit-learn+NLTK,是自然语言处理的入门好案例


• 中难度:人脸识别,结合PyTorch+OpenCV,能快速切入计算机视觉领域


• 高难度:聊天机器人,用到PyTorch+Transformers,适合自然语言处理进阶学习


很多人当初入门的时候,第一个项目就是“电影评分预测”,用的是MovieLens数据集,通过用户的历史评分数据预测用户对未看过电影的评分。这个项目虽然简单,但涵盖了数据处理、特征工程、模型训练、效果评估等AI开发的全流程,做完之后对机器学习的理解会提升一个档次。

2. 项目优化的3个关键技巧

很多初学者做完项目后就不管了,但其实项目优化才是提升能力的关键!分享3个我常用的优化技巧:


1. 特征工程:尝试增加新的特征,比如在房价预测中加入“人均收入”“教育水平”等特征,往往能大幅提升模型效果


2. 模型调参:使用GridSearchCV或RandomizedSearchCV自动调参,不用手动一个个试参数,效率更高


3. 模型融合:把多个模型的预测结果结合起来,比如用线性回归和决策树一起预测,准确率会比单个模型更高


给大家上一段模型调参的代码示例,以Scikit-learn的随机森林模型为例:


from sklearn.ensemble import RandomForestRegressor

from sklearn.model_selection import GridSearchCV



# 定义参数网格

param_grid = {

   'n_estimators': [100, 200, 300],  # 决策树数量

   'max_depth': [5, 10, 15],         # 树的最大深度

   'min_samples_split': [2, 5, 10]   # 分裂节点的最小样本数

}



# 初始化模型

model = RandomForestRegressor(random_state=42)



# 网格搜索调参

grid_search = GridSearchCV(

   estimator=model,

   param_grid=param_grid,

   cv=5,  # 5折交叉验证

   scoring='neg_mean_squared_error',

   n_jobs=-1  # 利用所有CPU核心

)



# 训练并寻找最佳参数

grid_search.fit(X_train, y_train)



# 输出最佳参数和最佳分数

print(f'最佳参数:{grid_search.best_params_}')

print(f'最佳交叉验证分数:{-grid_search.best_score_:.2f}')



# 使用最佳参数的模型进行预测

best_model = grid_search.best_estimator_

y_pred = best_model.predict(X_test)

通过网格搜索调参后,模型的效果通常能提升10%-20%,这是AI开发中非常实用的技巧,一定要掌握!

AI入门的避坑指南(血的教训)

作为过来人,我总结了几个Python程序员入门AI最容易踩的坑,大家一定要避开:


坑1:只学理论不写代码


很多人抱着《深度学习》《机器学习实战》这些书啃了半天,理论知识背得滚瓜烂熟,但一动手写代码就懵了。AI是一门实践性极强的学科,一定要边学边练,每学一个知识点就写一段代码验证,只有亲手跑通模型,才能真正理解原理。



坑2:上来就啃复杂模型


刚入门就去学Transformer、GPT这些复杂模型,就像刚学会走路就想跑一样,只会越学越懵。一定要从简单的模型开始,比如线性回归、决策树,再逐步过渡到神经网络、深度学习,循序渐进才是最有效率的学习方式。



坑3:忽视数据处理


很多初学者把大部分时间花在模型调参上,却忽略了数据处理的重要性。要知道“数据决定模型的上限,模型只是逼近这个上限”,如果数据质量差、特征工程做得不好,再复杂的模型也没用。我当初做一个用户流失预测项目,光数据清洗就花了一周时间,最后模型准确率比不清洗数据提升了30%!



坑4:不关注业务场景


AI模型最终要落地到业务中,脱离业务的模型都是空谈。比如在做推荐系统项目时,不能只追求模型准确率,还要考虑用户体验、工程实现成本等因素。建议大家多关注实际业务场景,思考AI模型能解决什么具体问题,这样才能成为企业需要的AI人才。


虽然不懂AI基础知识也能开发AI应用,但是懂的人往往可以开发出更复杂更优秀的AI高级应用。如果你对AI基础知识感兴趣,可以看看我的人工智能入门教程http://captainbed.cn/gzh

总结:AI入门其实没那么难

看到这里,相信你已经对Python程序员如何入门AI有了清晰的认识。其实AI入门并不需要你是数学天才,也不需要你有多年的编程经验,只要你是Python程序员,按照“基础铺垫→工具实战→项目落地”的路径一步步来,6-9个月就能独立开发AI应用。

最后给大家一个学习建议:不要追求“一口吃成胖子”,每天学习1-2小时,坚持6个月,你会发现自己已经超越了90%的AI初学者。遇到问题不要怕,多查文档、多逛CSDN、多和同行交流,AI学习的路上没有捷径,但只要坚持下去,一定能看到成果!

如果你在学习过程中遇到任何问题,欢迎在评论区留言,我会一一解答。也欢迎大家关注我的公众号,后续我会分享更多AI实战教程和项目经验,让我们一起在AI的道路上共同进步!

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 22:14:09 HTTP/2.0 GET : https://f.mffb.com.cn/a/463894.html
  2. 运行时间 : 0.172952s [ 吞吐率:5.78req/s ] 内存消耗:4,437.17kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=4a8c304139a89ab00a44779fa22189a1
  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.000787s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001189s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000294s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000260s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000610s ]
  6. SELECT * FROM `set` [ RunTime:0.000235s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000577s ]
  8. SELECT * FROM `article` WHERE `id` = 463894 LIMIT 1 [ RunTime:0.000704s ]
  9. UPDATE `article` SET `lasttime` = 1770560049 WHERE `id` = 463894 [ RunTime:0.010892s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.001016s ]
  11. SELECT * FROM `article` WHERE `id` < 463894 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.002643s ]
  12. SELECT * FROM `article` WHERE `id` > 463894 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000481s ]
  13. SELECT * FROM `article` WHERE `id` < 463894 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001873s ]
  14. SELECT * FROM `article` WHERE `id` < 463894 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.001739s ]
  15. SELECT * FROM `article` WHERE `id` < 463894 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.008110s ]
0.174527s