当前位置:首页>python>077-Python 面试题精选

077-Python 面试题精选

  • 2026-06-29 09:55:04
077-Python 面试题精选

Python 系统教程

Python 面试题精选

Python 面试题精选

所属阶段:附录
建议学习时间:持续复习
重要程度:⭐⭐⭐⭐⭐

一、基础语法(初级)

1.1 变量与数据类型

Q1:Python 有哪些基本数据类型?

python
# 数值类型 int_num = 42 float_num = 3.14 complex_num = 1 + 2j # 字符串 string = "Hello Python" # 布尔类型 bool_val = True # 空值 none_val = None # 容器类型 list_val = [1, 2, 3] tuple_val = (1, 2, 3) dict_val = {'key': 'value'} set_val = {1, 2, 3}

Q2:可变类型 vs 不可变类型?

python
# 不可变类型(值不可修改) immutable = (int, float, str, tuple, frozenset, bool, None) # 可变类型(值可修改) mutable = (list, dict, set, bytearray) # 示例 s = "hello" s[0] = 'H' # ❌ TypeError(字符串不可变) lst = [1, 2, 3] lst[0] = 10 # ✅ 可以修改

Q3:== 和 is 的区别?

python
a = [1, 2, 3] b = [1, 2, 3] c = a print(a == b) # True(值相等) print(a is b) # False(不是同一个对象) print(a is c) # True(指向同一个对象) # 小整数池 x = 256 y = 256 print(x is y) # True(-5 到 256 会被缓存) x = 257 y = 257 print(x is y) # False(超出缓存范围)

1.2 字符串操作

Q4:字符串反转的几种方法?

python
s = "Hello World" # 方法1:切片(最快) reversed_s = s[::-1] # 方法2:reversed() + join reversed_s = ''.join(reversed(s)) # 方法3:循环 reversed_s = '' for char in s: reversed_s = char + reversed_s

Q5:字符串格式化的三种方式?

python
name = "Alice" age = 30 # 方式1:% 格式化(旧) s = "我是 %s,今年 %d 岁" % (name, age) # 方式2:str.format() s = "我是 {},今年 {} 岁".format(name, age) s = "我是 {name},今年 {age} 岁".format(name=name, age=age) # 方式3:f-string(推荐,Python 3.6+) s = f"我是 {name},今年 {age} 岁" s = f"明年我 {age + 1} 岁" # 支持表达式

二、数据结构(初中级)

2.1 列表

Q6:列表推导式 vs map/filter?

python
numbers = [1, 2, 3, 4, 5] # 列表推导式(推荐) squares = [x**2 for x in numbers] evens = [x for x in numbers if x % 2 == 0] # map + filter squares = list(map(lambda x: x**2, numbers)) evens = list(filter(lambda x: x % 2 == 0, numbers))

Q7:如何拷贝列表?

python
original = [1, 2, [3, 4]] # 浅拷贝 copy1 = original.copy() copy2 = original[:] copy3 = list(original) # 深拷贝 import copy deep = copy.deepcopy(original) # 验证 copy1[2].append(5) print(original) # [1, 2, [3, 4, 5]](内部列表被修改) print(deep) # [1, 2, [3, 4]](独立副本)

2.2 字典

Q8:字典的 get() vs [] 访问?

python
d = {'name': 'Alice', 'age': 30} # [] 访问 name = d['name'] # ✅ 'Alice' email = d['email'] # ❌ KeyError # get() 方法(推荐) name = d.get('name') # ✅ 'Alice' email = d.get('email') # ✅ None(不报错) email = d.get('email', '未设置') # ✅ 提供默认值

Q9:如何合并两个字典?

python
d1 = {'a': 1, 'b': 2} d2 = {'b': 3, 'c': 4} # 方式1:update() d1.update(d2) # {'a': 1, 'b': 3, 'c': 4} # 方式2:** 解包 d3 = {**d1, **d2} # 方式3:| 运算符(Python 3.9+) d3 = d1 | d2

三、函数(中级)

3.1 参数传递

Q10:args 和 kwargs 的作用?*

python
def func(a, b, *args, **kwargs): """ a, b: 位置参数 *args: 额外位置参数(元组) **kwargs: 关键字参数(字典) """ print(f"a={a}, b={b}") print(f"args={args}") print(f"kwargs={kwargs}") func(1, 2, 3, 4, x=5, y=6) # a=1, b=2 # args=(3, 4) # kwargs={'x': 5, 'y': 6}

Q11:Python 是值传递还是引用传递?

python
def modify_immutable(x): x = 100 # 创建新对象,不影响外部 def modify_mutable(lst): lst.append(4) # 修改原对象 num = 10 modify_immutable(num) print(num) # 10(未改变) my_list = [1, 2, 3] modify_mutable(my_list) print(my_list) # [1, 2, 3, 4](被修改) # 结论:Python 是"传对象引用" # - 不可变对象:看起来像值传递 # - 可变对象:看起来像引用传递

3.2 闭包与装饰器

Q12:什么是闭包?

python
def outer(x): def inner(y): return x + y # inner 引用了 outer 的变量 x return inner add_5 = outer(5) print(add_5(10)) # 15 # 闭包三要素: # 1. 函数嵌套 # 2. 内部函数引用外部函数变量 # 3. 外部函数返回内部函数

Q13:写一个计时装饰器

python
import time from functools import wraps def timer(func): @wraps(func) def wrapper(*args, **kwargs): start = time.time() result = func(*args, **kwargs) end = time.time() print(f"{func.__name__} 耗时:{end - start:.4f}秒") return result return wrapper @timer def slow_function(): time.sleep(1) return "完成" slow_function() # slow_function 耗时:1.0012秒

四、面向对象(中高级)

4.1 类与对象

Q14:类方法、静态方法、实例方法的区别?

python
class MyClass: def instance_method(self): """实例方法:需要 self,可访问实例属性""" return f"实例方法,self={self}" @classmethod def class_method(cls): """类方法:需要 cls,可访问类属性""" return f"类方法,cls={cls}" @staticmethod def static_method(): """静态方法:不需要 self/cls,像普通函数""" return "静态方法" obj = MyClass() obj.instance_method() # 实例方法 MyClass.class_method() # 类方法 MyClass.static_method() # 静态方法

Q15:\\new\\ vs \\init\\

python
class Singleton: _instance = None def __new__(cls): """创建对象实例(类方法)""" if cls._instance is None: cls._instance = super().__new__(cls) return cls._instance def __init__(self): """初始化对象属性(实例方法)""" self.value = 42 # 单例模式:始终返回同一个实例 s1 = Singleton() s2 = Singleton() print(s1 is s2) # True

4.2 魔术方法

Q16:常用魔术方法有哪些?

python
class Point: def __init__(self, x, y): self.x = x self.y = y def __str__(self): """print() 调用""" return f"Point({self.x}, {self.y})" def __repr__(self): """交互式解释器显示""" return f"Point(x={self.x}, y={self.y})" def __eq__(self, other): """== 比较""" return self.x == other.x and self.y == other.y def __add__(self, other): """+ 运算符""" return Point(self.x + other.x, self.y + other.y) def __len__(self): """len() 调用""" return int((self.x**2 + self.y**2) ** 0.5) def __getitem__(self, index): """[] 索引""" return [self.x, self.y][index] p1 = Point(1, 2) p2 = Point(3, 4) print(p1 + p2) # Point(4, 6) print(p1[0]) # 1

五、高级特性(高级)

5.1 生成器与迭代器

Q17:生成器 vs 列表?

python
# 列表:一次性创建所有元素(内存占用大) squares_list = [x**2 for x in range(1000000)] # 生成器:惰性求值(内存占用小) squares_gen = (x**2 for x in range(1000000)) import sys print(sys.getsizeof(squares_list)) # ~8MB print(sys.getsizeof(squares_gen)) # ~120B

Q18:如何实现斐波那契数列生成器?

python
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b fib = fibonacci() print([next(fib) for _ in range(10)]) # [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]

5.2 上下文管理器

Q19:实现一个计时上下文管理器

python
import time class Timer: def __enter__(self): self.start = time.time() return self def __exit__(self, exc_type, exc_val, exc_tb): self.end = time.time() print(f"耗时:{self.end - self.start:.4f}秒") return False # 不抑制异常 with Timer(): time.sleep(1) # 耗时:1.0012秒

5.3 元类

Q20:什么是元类?

python
# 元类:创建类的类 class Meta(type): def __new__(mcs, name, bases, attrs): # 自动为所有方法添加日志 for key, value in attrs.items(): if callable(value): attrs[key] = log_decorator(value) return super().__new__(mcs, name, bases, attrs) class MyClass(metaclass=Meta): def method(self): return "执行方法" # MyClass 的所有方法都会自动添加日志

六、并发编程(高级)

6.1 多线程

Q21:GIL 是什么?

GIL(Global Interpreter Lock,全局解释器锁)
- CPython 的内存管理机制,同一时刻只有一个线程执行 Python 字节码
- 影响:多线程无法利用多核 CPU(计算密集型)
- 不影响:IO 密集型任务(线程会释放 GIL)

Q22:如何实现线程安全的计数器?

python
import threading class SafeCounter: def __init__(self): self.value = 0 self.lock = threading.Lock() def increment(self): with self.lock: # 加锁 self.value += 1 def get(self): with self.lock: return self.value counter = SafeCounter() threads = [ threading.Thread(target=counter.increment) for _ in range(1000) ] for t in threads: t.start() for t in threads: t.join() print(counter.get()) # 1000(线程安全)

6.2 异步编程

Q23:async/await 的作用?

python
import asyncio # 同步版本(慢) def fetch_sync(): time.sleep(1) # 模拟 IO return "数据" # 异步版本(快) async def fetch_async(): await asyncio.sleep(1) # 异步 IO return "数据" async def main(): # 并发执行3个请求 tasks = [fetch_async() for _ in range(3)] results = await asyncio.gather(*tasks) return results # 同步:3秒 # 异步:1秒 asyncio.run(main())

七、实战编程题

7.1 算法题

Q24:两数之和(LeetCode 1)

python
def two_sum(nums, target): """ 输入:nums = [2, 7, 11, 15], target = 9 输出:[0, 1] """ seen = {} for i, num in enumerate(nums): complement = target - num if complement in seen: return [seen[complement], i] seen[num] = i return []

Q25:有效的括号(LeetCode 20)

python
def is_valid(s): """ 输入:"({[]})" 输出:True """ stack = [] pairs = {'(': ')', '{': '}', '[': ']'} for char in s: if char in pairs: stack.append(char) elif not stack or pairs[stack.pop()] != char: return False return len(stack) == 0

Q26:反转链表(LeetCode 206)

python
class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def reverse_list(head): """ 输入:1 -> 2 -> 3 -> 4 -> 5 输出:5 -> 4 -> 3 -> 2 -> 1 """ prev = None current = head while current: next_node = current.next current.next = prev prev = current current = next_node return prev

7.2 实战题

Q27:实现 LRU 缓存

python
from collections import OrderedDict class LRUCache: def __init__(self, capacity): self.cache = OrderedDict() self.capacity = capacity def get(self, key): if key not in self.cache: return -1 # 移到末尾(最近使用) self.cache.move_to_end(key) return self.cache[key] def put(self, key, value): if key in self.cache: self.cache.move_to_end(key) self.cache[key] = value if len(self.cache) > self.capacity: self.cache.popitem(last=False) # 删除最久未使用 # 使用 cache = LRUCache(2) cache.put(1, 1) cache.put(2, 2) cache.get(1) # 返回 1 cache.put(3, 3) # 淘汰 key 2 cache.get(2) # 返回 -1

Q28:单例模式的实现

python
# 方式1:__new__ 方法 class Singleton: _instance = None def __new__(cls, *args, **kwargs): if cls._instance is None: cls._instance = super().__new__(cls) return cls._instance # 方式2:装饰器 def singleton(cls): instances = {} def get_instance(*args, **kwargs): if cls not in instances: instances[cls] = cls(*args, **kwargs) return instances[cls] return get_instance @singleton class MyClass: pass # 方式3:元类 class SingletonMeta(type): _instances = {} def __call__(cls, *args, **kwargs): if cls not in cls._instances: cls._instances[cls] = super().__call__(*args, **kwargs) return cls._instances[cls] class MyClass(metaclass=SingletonMeta): pass

八、性能与优化

Q29:如何优化 Python 代码性能?

python
# 1. 使用列表推导式代替循环 # ❌ 慢 result = [] for i in range(1000): result.append(i**2) # ✅ 快 result = [i**2 for i in range(1000)] # 2. 使用生成器节省内存 # ❌ 内存占用大 squares = [i**2 for i in range(10000000)] # ✅ 惰性求值 squares = (i**2 for i in range(10000000)) # 3. 使用内置函数 # ❌ 慢 result = [] for item in items: if condition(item): result.append(item) # ✅ 快 result = list(filter(condition, items)) # 4. 使用 set 进行成员检查 # ❌ O(n) if item in my_list: pass # ✅ O(1) if item in my_set: pass # 5. 使用局部变量 # ❌ 慢(全局变量查找) global_var = 10 def func(): for i in range(1000): x = global_var + i # ✅ 快(局部变量) def func(): local_var = global_var for i in range(1000): x = local_var + i

Q30:如何分析 Python 代码性能?

python
import cProfile import pstats def slow_function(): total = 0 for i in range(1000000): total += i return total # 性能分析 cProfile.run('slow_function()', 'profile_stats') # 查看统计 stats = pstats.Stats('profile_stats') stats.sort_stats('cumulative') stats.print_stats(10)

九、高频考点速查

核心概念

| 概念 | 要点 |

|------|------|

| GIL | 全局解释器锁,限制多线程性能 |

| 鸭子类型 | 关注对象行为,不关注类型 |

| 装饰器 | 函数包装器,AOP 编程 |

| 生成器 | 惰性求值,节省内存 |

| 上下文管理器 | with 语句,资源管理 |

| 元类 | 类的类,控制类创建 |

数据结构时间复杂度

| 操作 | list | dict | set |

|------|------|------|-----|

| 访问 | O(1) | O(1) | - |

| 搜索 | O(n) | O(1) | O(1) |

| 插入 | O(1) 末尾
O(n) 中间 | O(1) | O(1) |

| 删除 | O(n) | O(1) | O(1) |

常用内置函数

python
# 序列操作 len(), sorted(), reversed(), enumerate(), zip() # 类型转换 int(), str(), list(), dict(), set(), tuple() # 数学运算 sum(), max(), min(), abs(), round(), pow() # 高阶函数 map(), filter(), reduce(), any(), all() # 对象操作 isinstance(), issubclass(), hasattr(), getattr(), setattr()

十、面试建议

✅ 面试技巧

1. STAR 法则回答问题

- Situation(情况)

- Task(任务)

- Action(行动)

- Result(结果)

2. 展示思考过程

- 先说思路,再写代码

- 考虑边界情况

- 分析时间/空间复杂度

3. 代码规范

- 使用有意义的变量名

- 添加必要注释

- 遵循 PEP 8 风格

📚 推荐学习资源

• 📖 书籍:《Python 编程:从入门到实践》、《流畅的 Python》

• 💻 刷题:LeetCode、牛客网、HackerRank

• 🎥 视频:廖雪峰 Python 教程、Real Python

• 🔧 实践:GitHub 开源项目、Kaggle 竞赛

🎯 学习路径

基础语法 (1周) → 数据结构 (2周) → 函数编程 (2周) →
面向对象 (2周) → 高级特性 (3周) → 刷题实战 (持续)

祝你面试成功!🎉

记住:代码能力 = 理论知识 + 刷题实践 + 项目经验

本文为 Python 系统教程系列第 77 篇

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-04 09:39:48 HTTP/2.0 GET : https://f.mffb.com.cn/a/487739.html
  2. 运行时间 : 0.368723s [ 吞吐率:2.71req/s ] 内存消耗:4,734.87kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=ce2e5a2e2aeb4ddbcf9a4964026b675e
  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.000917s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001381s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.002269s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.015054s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001271s ]
  6. SELECT * FROM `set` [ RunTime:0.009186s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001355s ]
  8. SELECT * FROM `article` WHERE `id` = 487739 LIMIT 1 [ RunTime:0.015100s ]
  9. UPDATE `article` SET `lasttime` = 1783129188 WHERE `id` = 487739 [ RunTime:0.027641s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000436s ]
  11. SELECT * FROM `article` WHERE `id` < 487739 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.062065s ]
  12. SELECT * FROM `article` WHERE `id` > 487739 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.033442s ]
  13. SELECT * FROM `article` WHERE `id` < 487739 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.029118s ]
  14. SELECT * FROM `article` WHERE `id` < 487739 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.036408s ]
  15. SELECT * FROM `article` WHERE `id` < 487739 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.013029s ]
0.371163s