当前位置:首页>python>Python 实用 100 条命令(建议收藏)

Python 实用 100 条命令(建议收藏)

  • 2026-08-20 09:02:58
Python 实用 100 条命令(建议收藏)

👋 我是 Lucifer,一名专注 Oracle、国产数据库与数据库架构的 DBA。更多原创文章和技术资料同步更新:ora100.com

前言

本文整理 Python 3.14 环境中常用的 100 条命令与短代码,覆盖解释器、虚拟环境、依赖、文件数据、网络、并发、测试、调试、性能和打包。第三方工具需先安装,项目命令优先写成 python -m ...,避免调用到错误环境中的可执行文件。

一、解释器与环境

01

查看 Python 版本

bash

python3 --version

02

查看完整构建信息

bash

python3 -VV

03

查看解释器路径

bash

python3 -c "import sys; print(sys.executable)"

04

查看模块搜索路径

bash

python3 -c "import sys; print(*sys.path, sep='\n')"

05

查看平台信息

bash

python3 -c "import platform; print(platform.platform())"

06

执行单行代码

bash

python3 -c "print(sum(range(101)))"

07

以模块方式运行

bash

python3 -m http.server 8000

08

进入交互模式后保留脚本变量

bash

python3 -i app.py

09

使用隔离模式运行

bash

python3 -I script.py

10

查看全部命令行选项

bash

python3 --help-all

二、虚拟环境与 pip

11

创建虚拟环境

bash

python3 -m venv .venv

12

激活虚拟环境

bash

source .venv/bin/activate

13

升级 pip

bash

python -m pip install --upgrade pip

14

安装指定版本

bash

python -m pip install 'requests==2.32.5'

15

按依赖文件安装

bash

python -m pip install -r requirements.txt

16

查看已安装包

bash

python -m pip list

17

查看过期包

bash

python -m pip list --outdated

18

查看包详情

bash

python -m pip show requests

19

检查依赖冲突

bash

python -m pip check

20

导出锁定版本

bash

python -m pip freeze > requirements-lock.txt

三、模块与代码检查

21

查看模块帮助

bash

python3 -m pydoc json

22

启动本地文档服务

bash

python3 -m pydoc -p 8080

23

定位模块文件

bash

python3 -c "import json; print(json.__file__)"

24

查看已安装模块

bash

python3 -c "help('modules')"

25

编译单个文件检查语法

bash

python3 -m py_compile app.py

26

递归编译项目

bash

python3 -m compileall -q src

27

查看抽象语法树

bash

python3 -m ast app.py

28

格式化代码

bash

python -m black .

29

运行 Ruff 检查

bash

python -m ruff check .

30

运行类型检查

bash

python -m mypy src

四、文件与数据处理

31

读取文本文件

bash

python3 -c "from pathlib import Path; print(Path('app.log').read_text(encoding='utf-8'))"

32

写入文本文件

bash

python3 -c "from pathlib import Path; Path('status.txt').write_text('ok\n', encoding='utf-8')"

33

递归查找 Python 文件

bash

python3 -c "from pathlib import Path; print(*Path('.').rglob('*.py'), sep='\n')"

34

计算文件 SHA-256

bash

python3 -c "import hashlib,pathlib; print(hashlib.file_digest(pathlib.Path('pkg.tgz').open('rb'),'sha256').hexdigest())"

35

美化 JSON

bash

python3 -m json.tool input.json

36

校验 JSON

bash

python3 -m json.tool input.json >/dev/null

37

读取 CSV

bash

python3 -c "import csv; print(*csv.DictReader(open('data.csv',encoding='utf-8')),sep='\n')"

38

创建 ZIP 文件

bash

python3 -m zipfile -c backup.zip data/

39

列出 ZIP 内容

bash

python3 -m zipfile -l backup.zip

40

解压 ZIP 文件

bash

python3 -m zipfile -e backup.zip restore/

五、日期、正则与编码

41

输出 ISO 时间

bash

python3 -c "from datetime import datetime,timezone; print(datetime.now(timezone.utc).isoformat())"

42

计算 7 天后的日期

bash

python3 -c "from datetime import date,timedelta; print(date.today()+timedelta(days=7))"

43

解析日期字符串

bash

python3 -c "from datetime import datetime; print(datetime.strptime('2026-07-27','%Y-%m-%d'))"

44

正则提取 IPv4

bash

python3 -c "import re; print(re.findall(r'\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b',open('app.log').read()))"

45

正则替换

bash

python3 -c "import re; print(re.sub(r'password=\\S+','password=***','user=a password=secret'))"

46

URL 编码

bash

python3 -c "from urllib.parse import quote; print(quote('金仓 数据库'))"

47

Base64 编码

bash

python3 -c "import base64; print(base64.b64encode(b'hello').decode())"

48

Base64 解码

bash

python3 -c "import base64; print(base64.b64decode('aGVsbG8=').decode())"

49

生成 UUID

bash

python3 -c "import uuid; print(uuid.uuid4())"

50

生成安全随机令牌

bash

python3 -c "import secrets; print(secrets.token_urlsafe(32))"

六、网络与系统

51

查询主机 IP

bash

python3 -c "import socket; print(socket.gethostbyname_ex('example.com'))"

52

测试 TCP 端口

bash

python3 -c "import socket; print(socket.create_connection(('127.0.0.1',8000),3).getpeername())"

53

发起 HTTP GET

bash

python3 -c "from urllib.request import urlopen; print(urlopen('https://example.com',timeout=5).status)"

54

解析 URL

bash

python3 -c "from urllib.parse import urlparse; print(urlparse('https://example.com/a?q=1'))"

55

查看环境变量

bash

python3 -c "import os; print(os.getenv('PATH'))"

56

查看当前工作目录

bash

python3 -c "from pathlib import Path; print(Path.cwd())"

57

查看 CPU 数量

bash

python3 -c "import os; print(os.process_cpu_count())"

58

执行外部命令并检查返回码

bash

python3 -c "import subprocess; subprocess.run(['git','status','--short'],check=True)"

59

捕获外部命令输出

bash

python3 -c "import subprocess; print(subprocess.check_output(['uname','-r'],text=True).strip())"

60

查看 Python 进程资源限制

bash

python3 -c "import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))"

七、数据库与并发

61

打开 SQLite 命令行

bash

python3 -m sqlite3 app.db

62

执行 SQLite 查询

bash

python3 -c "import sqlite3; print(sqlite3.connect('app.db').execute('select sqlite_version()').fetchone())"

63

创建 SQLite 表

bash

python3 -c "import sqlite3; c=sqlite3.connect('app.db'); c.execute('create table if not exists t(id integer primary key,name text)'); c.commit()"

64

查看 SQLite 备份

bash

python3 -c "import sqlite3; a=sqlite3.connect('app.db'); b=sqlite3.connect('backup.db'); a.backup(b)"

65

运行 asyncio 示例

bash

python3 -c "import asyncio; asyncio.run(asyncio.sleep(1,result='done'))"

66

创建线程池

python

from concurrent.futures import ThreadPoolExecutor

with ThreadPoolExecutor(4as pool:

  print(list(pool.map(str.upper, ["a""b""c"])))

67

创建进程池

python

from concurrent.futures import ProcessPoolExecutor

with ProcessPoolExecutor() as pool:

  print(list(pool.map(abs, [-1, -2, -3])))

68

创建生产者消费者队列

python

from queue import Queue

q = Queue(); q.put("task"); print(q.get())

69

设置子进程超时

bash

python3 -c "import subprocess; subprocess.run(['sleep','1'],timeout=2,check=True)"

70

并发请求多个 URL

python

import asyncio

asyncdef main():

  await asyncio.gather(*(asyncio.to_thread(print, x) for x in range(5)))

asyncio.run(main())

八、测试与调试

71

运行 unittest

bash

python3 -m unittest discover -s tests -v

72

运行指定测试

bash

python3 -m unittest tests.test_api.ApiTest.test_health

73

运行 pytest

bash

python -m pytest -q

74

运行带关键字的测试

bash

python -m pytest -k health -vv

75

失败即停止

bash

python -m pytest -x

76

生成覆盖率

bash

python -m coverage run -m pytest

77

输出覆盖率报告

bash

python -m coverage report -m

78

使用 pdb 运行脚本

bash

python3 -m pdb app.py

79

发生异常时进入调试器

bash

python3 -m pdb -c continue app.py

80

启用开发模式

bash

python3 -X dev app.py

九、性能与诊断

81

测量表达式耗时

bash

python3 -m timeit "sum(range(1000))"

82

带初始化代码压测

bash

python3 -m timeit -s "x=list(range(1000))""sum(x)"

83

生成 cProfile 数据

bash

python3 -m cProfile -o profile.pstats app.py

84

按累计时间查看性能

bash

python3 -c "import pstats; pstats.Stats('profile.pstats').sort_stats('cumulative').print_stats(20)"

85

分析导入耗时

bash

python3 -X importtime -c "import asyncio"

86

跟踪内存分配

bash

python3 -X tracemalloc=10 app.py

87

崩溃时输出堆栈

bash

python3 -X faulthandler app.py

88

将警告转为错误

bash

python3 -W error app.py

89

禁止生成 pyc

bash

python3 -B app.py

90

查看垃圾回收统计

bash

python3 -c "import gc; print(gc.get_stats())"

十、构建与发布

91

创建 pyproject 项目构建环境

bash

python -m pip install -U build

92

构建 sdist 和 wheel

bash

python -m build

93

只构建 wheel

bash

python -m build --wheel

94

检查分发包元数据

bash

python -m twine check dist/*

95

上传到测试仓库

bash

python -m twine upload --repository testpypi dist/*

96

安装本地 wheel

bash

python -m pip install dist/example-1.0.0-py3-none-any.whl

97

可编辑安装项目

bash

python -m pip install -e .

98

构建独立 zipapp

bash

python3 -m zipapp src -m 'app:main' -o app.pyz

99

检查 wheel 内容

bash

python3 -m zipfile -l dist/example-1.0.0-py3-none-any.whl

100

一次完成质量检查

bash

python -m ruff check . && python -m pytest -q && python -m build

总结

这 100 条命令覆盖了 Python 项目从环境创建到发布的主要环节。生产项目应固定依赖版本、隔离运行环境、把检查与测试放入 CI,并避免在命令行或源码中保存密钥。

MySQL DBA 应该掌握的 100 条命令(建议收藏)

PostgreSQL DBA 应该掌握的 100 条命令

SQL Server DBA 实用的 100 条命令(建议收藏)

Oracle DBA 应该掌握的 100 条命令(建议收藏)

MongoDB DBA 应该掌握的 100 条命令(建议收藏)

TiDB DBA 应该掌握的 100 条命令(建议收藏)

OceanBase DBA 应该掌握的 100 条命令(建议收藏)

达梦 DBA 应该掌握的 100 条命令(建议收藏)

金仓 DBA 应该掌握的 100 条命令(建议收藏)

崖山 DBA 应该掌握的 100 条命令(建议收藏)

Redis 运维实用 100 条命令(建议收藏)

更多 Oracle、MySQL、PostgreSQL、MongoDB 实战内容,可以访问 DBA 学习平台:ora100.com

感谢阅读。

我会持续分享 Oracle、GoldenGate、RAC、Data Guard、MySQL、PostgreSQL、OceanBase、人大金仓等数据库技术文章。

个人网站:ora100.com

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 17:46:36 HTTP/2.0 GET : https://f.mffb.com.cn/a/509735.html
  2. 运行时间 : 0.259147s [ 吞吐率:3.86req/s ] 内存消耗:4,765.30kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=8197ce03e066edbb8e2c21237d36494d
  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.000777s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001159s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.010461s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.003589s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001202s ]
  6. SELECT * FROM `set` [ RunTime:0.000462s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001315s ]
  8. SELECT * FROM `article` WHERE `id` = 509735 LIMIT 1 [ RunTime:0.020484s ]
  9. UPDATE `article` SET `lasttime` = 1787305596 WHERE `id` = 509735 [ RunTime:0.006286s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000538s ]
  11. SELECT * FROM `article` WHERE `id` < 509735 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001012s ]
  12. SELECT * FROM `article` WHERE `id` > 509735 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001024s ]
  13. SELECT * FROM `article` WHERE `id` < 509735 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.005495s ]
  14. SELECT * FROM `article` WHERE `id` < 509735 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.018984s ]
  15. SELECT * FROM `article` WHERE `id` < 509735 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.050013s ]
0.262531s