当前位置:首页>python>别再只会爬虫了!Python在Web开发里原来这么能打

别再只会爬虫了!Python在Web开发里原来这么能打

  • 2026-01-14 02:23:33
别再只会爬虫了!Python在Web开发里原来这么能打

一套简洁优雅的语法,不仅能让你快速构建原型,更能支撑起千万级用户的平台

你是否曾以为Python只是个“脚本语言”,搞搞数据分析、写写爬虫还行,真要开发企业级Web应用还得靠Java或Go?

今天我要为你彻底打破这个刻板印象。

从Instagram到Pinterest,从豆瓣到知乎,无数我们每天使用的网站背后,都是Python在强力驱动。事实上,Python在Web开发领域的生态成熟度远超大多数人想象,它让开发效率提升数倍的同时,依然保持了卓越的可扩展性。

为什么顶尖公司都选择Python做Web开发?

我们先来看一个数据:Python Package Index (PyPI) 上已有超过45万个软件包,其中Web开发相关工具占据了重要部分。这背后是一个庞大而活跃的社区在持续贡献。

开发者的“幸福语言”

Python最显著的优势在于其极佳的开发体验。就像整理书架一样,清晰的代码结构让后续维护变得轻松愉快。

# 对比一下Python和其他语言的简单Web服务器# Python (使用Flask)from flask import Flaskapp = Flask(__name__)@app.route('/')defhello():return'Hello, World!'if __name__ == '__main__':    app.run(debug=True)

这段代码就能启动一个完整的Web服务器,而实现相同功能,Java可能需要数倍的代码量。

Python的简洁性不仅仅体现在代码行数上,更重要的是它降低了认知负荷。当你专注于业务逻辑而非语言特性时,自然能更快地产出可靠代码。

框架生态:从全栈到微服务,应有尽有

Python的Web框架生态系统是其最强大的武器。无论你要开发什么类型的应用,总有合适的工具。

Django:“全功能”的开箱即用

如果把Web开发比作装修房子,Django就像是一套精装修方案——墙壁、地板、水电都已布置妥当,你只需要摆放家具即可入住。

# Django的一个简单视图示例from django.http import HttpResponsefrom django.shortcuts import renderdefhome_page(request):"""一个简单的首页视图"""return HttpResponse("欢迎来到我的网站!")# 对应的URL配置# urls.pyfrom django.urls import pathfrom . import viewsurlpatterns = [    path('', views.home_page, name='home'),]

Django的核心优势:

  • 自带后台管理系统,几分钟就能搭建内容管理后台
  • ORM(对象关系映射)让数据库操作像操作Python对象一样简单
  • 强大的用户认证系统,安全可靠
  • 完善的中间件支持,轻松处理跨域、日志等通用需求

Instagram的后端就是用Django构建的,每天处理数亿用户请求的实践经验证明了它的强大扩展能力。

Flask:“轻量灵活”的按需定制

与Django的“大而全”不同,Flask采用了微内核设计。它像一套毛坯房,给你最核心的结构,其余装修完全按你的喜好来。

from flask import Flask, request, jsonifyapp = Flask(__name__)# 一个简单的REST API端点@app.route('/api/users', methods=['GET'])defget_users():# 这里可以从数据库获取用户数据    users = [        {'id'1'name''张三''email''zhangsan@example.com'},        {'id'2'name''李四''email''lisi@example.com'}    ]return jsonify({'users': users, 'count': len(users)})@app.route('/api/users', methods=['POST'])defcreate_user():    data = request.json# 这里可以将用户数据保存到数据库return jsonify({'message''用户创建成功''user': data}), 201if __name__ == '__main__':    app.run(host='0.0.0.0', port=5000)

Flask的适用场景:

  • 需要高度定制化的项目
  • 微服务架构中的单个服务
  • 快速原型验证
  • 小型到中型Web应用

FastAPI:现代API开发的“后起之秀”

如果你是2020年后开始关注Python Web开发,那么FastAPI绝对不容错过。它巧妙结合了Python类型提示的威力,提供了前所未有的开发体验。

from fastapi import FastAPI, HTTPExceptionfrom pydantic import BaseModelfrom typing import Optionalapp = FastAPI(title="用户管理API")# 使用Pydantic定义数据模型classUserCreate(BaseModel):    username: str    email: str    age: Optional[int] = NoneclassUserResponse(UserCreate):    id: int# 内存存储模拟数据库users_db = []current_id = 1@app.post("/users/", response_model=UserResponse)asyncdefcreate_user(user: UserCreate):"""创建新用户"""global current_id    new_user = UserResponse(id=current_id, **user.dict())    users_db.append(new_user)    current_id += 1return new_user@app.get("/users/{user_id}", response_model=UserResponse)asyncdefread_user(user_id: int):"""根据ID获取用户"""for user in users_db:if user.id == user_id:return userraise HTTPException(status_code=404, detail="用户不存在")

运行这个应用后,访问 http://localhost:8000/docs 你会看到自动生成的交互式API文档——这是FastAPI的一大亮点。

FastAPI的核心特性:

  • 基于Python类型提示的自动请求验证
  • 自动生成OpenAPI文档
  • 原生支持异步编程(async/await)
  • 极高的性能(基于Starlette和Pydantic)

实战:用Python搭建一个完整Web应用需要哪些步骤?

第一步:打好基础三件套

无论后端用什么框架,前端基础是绕不开的:

  • HTML:网页的骨架
  • CSS:网页的皮肤
  • JavaScript:网页的灵魂

好消息是,Python模板引擎(如Jinja2)能让你在HTML中嵌入Python逻辑,大幅简化动态内容生成。

<!-- Jinja2模板示例 --><!DOCTYPE html><html><head><title>{{ title }} - 我的网站</title><linkrel="stylesheet"href="{{ url_for('static', filename='style.css') }}"></head><body><h1>欢迎,{{ user.name }}!</h1><ul>    {% for item in items %}<li>{{ item.name }} - ¥{{ item.price }}</li>    {% endfor %}</ul><scriptsrc="{{ url_for('static', filename='app.js') }}"></script></body></html>

第二步:选择合适的数据库交互方式

Python通过ORM让数据库操作变得异常简单。以SQLAlchemy为例:

from sqlalchemy import create_engine, Column, Integer, Stringfrom sqlalchemy.ext.declarative import declarative_basefrom sqlalchemy.orm import sessionmakerBase = declarative_base()classUser(Base):"""用户模型"""    __tablename__ = 'users'    id = Column(Integer, primary_key=True)    username = Column(String(50), unique=True, nullable=False)    email = Column(String(100), unique=True, nullable=False)def__repr__(self):returnf"<User(username='{self.username}', email='{self.email}')>"# 创建数据库连接engine = create_engine('sqlite:///app.db')Base.metadata.create_all(engine)# 创建会话Session = sessionmaker(bind=engine)session = Session()# 增删改查示例# 创建用户new_user = User(username='王五', email='wangwu@example.com')session.add(new_user)session.commit()# 查询用户user = session.query(User).filter_by(username='王五').first()print(f"找到用户: {user}")# 更新用户user.email = 'newwangwu@example.com'session.commit()# 删除用户session.delete(user)session.commit()

第三步:异步处理提升性能

对于I/O密集型应用(如网络请求、数据库查询),异步编程能显著提升并发处理能力:

# 使用async/await处理并发请求import asynciofrom aiohttp import webimport aiosqliteasyncdefhandle_request(request):"""异步处理HTTP请求"""# 模拟异步数据库查询await asyncio.sleep(0.1)  # 模拟I/O等待# 异步处理其他任务    tasks = [        fetch_user_data(),        generate_report(),        send_notification()    ]    results = await asyncio.gather(*tasks)return web.json_response({'results': results})asyncdeffetch_user_data():"""模拟异步获取用户数据"""asyncwith aiosqlite.connect('app.db'as db:asyncwith db.execute('SELECT * FROM users LIMIT 10'as cursor:            rows = await cursor.fetchall()return rowsasyncdefmain():    app = web.Application()    app.router.add_get('/', handle_request)return appif __name__ == '__main__':    web.run_app(main(), port=8080)

Python Web开发学习路线图

根据Web and Crafts的资料,结合我的经验,我为你梳理了一条高效学习路径:

第一阶段:Python基础(1-2周)

  • 掌握基本语法、数据类型、控制结构
  • 理解函数、模块和包的概念
  • 学习使用pip管理依赖包

第二阶段:前端基础(2-3周)

  • HTML5语义化标签
  • CSS3布局(Flexbox、Grid)
  • JavaScript基础语法和DOM操作

第三阶段:选择主攻框架(3-4周)

  • 新手推荐Django:文档完善,生态成熟,遇到问题容易找到解决方案
  • 有经验者可以选FastAPI:现代、高性能,适合API开发
  • 需要高度定制选Flask:灵活轻量,学习曲线平缓

第四阶段:深入实战(持续)

  • 数据库设计(SQL + ORM)
  • RESTful API设计
  • 用户认证与授权(OAuth2、JWT)
  • 部署与监控(Docker、Kubernetes、Prometheus)

关键库与工具推荐

除了框架本身,这些库能极大提升开发效率:

  1. Celery - 分布式任务队列,处理异步任务(如发送邮件、生成报表)
  2. Pydantic - 数据验证和设置管理,FastAPI的核心依赖
  3. Jinja2 - 模板引擎,在HTML中嵌入Python逻辑
  4. Pillow - 图像处理,适合用户上传图片的场景
  5. psycopg2 - PostgreSQL适配器,性能优秀

关于成本:Python开发真的更便宜吗?

这是很多创业者关心的问题。根据我多年的经验:

短期来看,Python确实能显著降低初始开发成本。 同样的功能,Python的开发速度通常是Java的2-3倍,这意味着更少的人力投入和更快的上市时间。

长期来看,维护成本也更低。 Python代码的可读性意味着新团队成员能更快上手,减少交接成本。

但这不代表Python是“免费午餐”。你需要考虑:

  • 团队技能匹配度
  • 具体业务场景(CPU密集型任务可能不是Python的强项)
  • 长期的技术债务管理

一个典型的中型Python Web项目(3-5个开发,3-6个月周期),成本大概在30-80万人民币,具体取决于功能复杂度、设计要求等因素。

写在最后

Python在Web开发领域已经形成了一套成熟、高效、可扩展的技术栈。从快速原型到千万级用户平台,它都能胜任。

选择Python不是因为它是最快的语言,而是因为它在开发效率、可维护性和性能之间找到了最佳平衡点。当你能用1/3的时间实现相同的功能,并且代码更易维护时,商业上的优势就不言而喻了。

你在Web开发中遇到过哪些Python的“真香”时刻?或者对哪些框架的使用有独特心得?欢迎在评论区分享你的经验~

如果文章对你有帮助,记得点赞收藏。

🏴‍☠️宝藏级🏴‍☠️ 原创公众号『数据STUDIO』内容超级硬核。公众号以Python为核心语言,垂直于数据科学领域,包括可戳👉PythonMySQL数据分析数据可视化机器学习与数据挖掘爬虫等,从入门到进阶!

长按👇关注- 数据STUDIO -设为星标,干货速递

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 19:42:46 HTTP/2.0 GET : https://f.mffb.com.cn/a/462501.html
  2. 运行时间 : 0.094144s [ 吞吐率:10.62req/s ] 内存消耗:4,617.26kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=3a3552a078d375c1837944ec6d181471
  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.000407s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000557s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000260s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000241s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000516s ]
  6. SELECT * FROM `set` [ RunTime:0.000186s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000485s ]
  8. SELECT * FROM `article` WHERE `id` = 462501 LIMIT 1 [ RunTime:0.002283s ]
  9. UPDATE `article` SET `lasttime` = 1770550966 WHERE `id` = 462501 [ RunTime:0.001906s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000264s ]
  11. SELECT * FROM `article` WHERE `id` < 462501 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.003440s ]
  12. SELECT * FROM `article` WHERE `id` > 462501 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002766s ]
  13. SELECT * FROM `article` WHERE `id` < 462501 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.003672s ]
  14. SELECT * FROM `article` WHERE `id` < 462501 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.008600s ]
  15. SELECT * FROM `article` WHERE `id` < 462501 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002087s ]
0.095601s