当前位置:首页>python>Python序列:列表、元组、字符串的统一操作

Python序列:列表、元组、字符串的统一操作

  • 2026-03-10 14:58:52
Python序列:列表、元组、字符串的统一操作

 序列就像一列火车,有固定顺序的车厢,可以通过编号找到每一节

🎯 本章目标

学完本章,你会:

  1. ✅ 理解序列的共同特性

  2. ✅ 掌握序列的通用操作

  3. ✅ 理解序列的索引、切片、遍历

  4. ✅ 掌握序列的内置函数

  5. ✅ 理解序列之间的区别和转换

  6. ✅ 能在测试中灵活使用序列


🎪 什么是序列?

序列的定义:序列是Python中最基本的数据结构,它是一组有序的元素集合。

想象一下

  • 序列 = 一列火车 🚂

  • 元素 = 车厢

  • 索引 = 车厢编号

  • 顺序 = 车厢排列顺序

Python中的主要序列类型

序列的共同特性

# 1. 有序性 - 元素有固定顺序list_example = ["a""b""c"]  # 顺序:a, b, ctuple_example = (123)       # 顺序:1, 2, 3str_example = "abc"             # 顺序:a, b, c# 2. 可通过索引访问print(list_example[0])  # aprint(tuple_example[1]) # 2print(str_example[2])   # c# 3. 支持切片操作print(list_example[0:2])   # ['a', 'b']print(tuple_example[1:])   # (2, 3)print(str_example[:2])     # 'ab'# 4. 有长度print(len(list_example))   # 3print(len(tuple_example))  # 3print(len(str_example))    # 3# 5. 可遍历for item in list_example:    print(item)

🔢 序列索引:正向和反向

正向索引(从0开始)# 索引从0开始sequence = ["a""b""c""d""e"]# 正向索引print(sequence[0])  # a(第一个)print(sequence[1])  # b(第二个)print(sequence[2])  # c(第三个)print(sequence[3])  # d(第四个)print(sequence[4])  # e(第五个)# 注意:索引不能越界# print(sequence[5])  # IndexError: list index out of range反向索引(从-1开始)# 反向索引(从-1开始,倒数第一个)sequence = ["a""b""c""d""e"]# 反向索引print(sequence[-1])  # e(倒数第一个)print(sequence[-2])  # d(倒数第二个)print(sequence[-3])  # c(倒数第三个)print(sequence[-4])  # b(倒数第四个)print(sequence[-5])  # a(倒数第五个)# 注意:反向索引也不能越界# print(sequence[-6])  # IndexError: list index out of range

记忆技巧

正向索引: 0   1   2   3   4         ↓   ↓   ↓   ↓   ↓序列:    [a,  b,  c,  d,  e]         ↑   ↑   ↑   ↑   ↑反向索引: -5  -4  -3  -2  -1

实战:获取测试结果

# 测试结果列表test_results = ["pending""running""passed""failed""passed""error"]# 获取第一个测试结果first_result = test_results[0]  # "pending"# 获取最后一个测试结果last_result = test_results[-1]  # "error"# 获取倒数第二个测试结果second_last = test_results[-2]  # "passed"

✂️ 序列切片:获取子序列

切片基本语法

# 语法:sequence[start:stop:step]# start: 起始索引(包含)# stop: 结束索引(不包含)# step: 步长(默认为1sequence = ["a""b""c""d""e""f""g""h"]# 基本切片print(sequence[2:5])    # ['c''d''e'](索引24print(sequence[:3])     # ['a''b''c'](从头到索引2print(sequence[3:])     # ['d''e''f''g''h'](从索引3到最后)print(sequence[:])      # 整个序列的副本# 步长切片print(sequence[::2])    # ['a''c''e''g'](每隔一个)print(sequence[1::2])   # ['b''d''f''h'](从索引1开始,每隔一个)# 反向切片print(sequence[::-1])   # ['h''g''f''e''d''c''b''a'](反转)print(sequence[5:2:-1]) # ['f''e''d'](反向从53

切片默认值

# 默认值# start默认:0 或 len(sequence)(当step为负数时)# stop默认:len(sequence) 或 -len(sequence)-1(当step为负数时)# step默认:1sequence = ["a""b""c""d""e"]# 等价写法print(sequence[:])        # 整个序列print(sequence[::])       # 整个序列print(sequence[0:len(sequence):1])  # 整个序列# 实战:分批处理测试用例all_tests = ["T1""T2""T3""T4""T5""T6""T7""T8"]# 第一批:前4个测试batch1 = all_tests[:4]  # ['T1''T2''T3''T4']# 第二批:中间4个测试batch2 = all_tests[2:6]  # ['T3''T4''T5''T6']# 每隔一个测试alternate = all_tests[::2]  # ['T1''T3''T5''T7']# 反向执行测试reverse_order = all_tests[::-1]  # ['T8''T7''T6''T5''T4''T3''T2''T1']

🔁 序列遍历

基本遍历

# 遍历列表test_cases = ["登录测试""注册测试""支付测试"]for test in test_cases:    print(f"执行测试: {test}")# 遍历元组status_codes = (200301400404500)for code in status_codes:    print(f"状态码: {code}")# 遍历字符串text = "test"for char in text:    print(f"字符: {char}")

使用enumerate()遍历

# enumerate()同时获取索引和值test_cases = ["登录测试""注册测试""支付测试"]# 基本用法for i, test in enumerate(test_cases):    print(f"第{i+1}个测试: {test}")# 指定起始索引for i, test in enumerate(test_cases, 1):  # 从1开始    print(f"{i}{test}")# 实战:带编号的测试报告test_results = [    ("登录测试""passed"2.5),    ("注册测试""failed"1.8),    ("支付测试""passed"5.2)]print("测试报告:")for i, (test_name, status, duration) in enumerate(test_results, 1):    icon = "✅" if status == "passed" else "❌"    print(f"{i:2d}{icon}{test_name:10} - {status:6} ({duration:5.2f}s)")

使用zip()遍历多个序列

# zip()同时遍历多个序列test_names = ["登录测试""注册测试""支付测试"]statuses = ["passed""failed""passed"]durations = [2.51.85.2]# 同时遍历三个列表for name, status, duration in zip(test_names, statuses, durations):    print(f"{name}{status} ({duration}s)")# zip()返回元组for item in zip(test_names, statuses, durations):    print(item)  # ('登录测试', 'passed', 2.5) ...# 不同长度的序列short_list = [123]long_list = ["a""b""c""d""e"]for a, b in zip(short_list, long_list):    print(f"{a} - {b}")  # 只遍历到短序列结束# 使用itertools.zip_longest遍历所有from itertools import zip_longestfor a, b in zip_longest(short_list, long_list, fillvalue="N/A"):    print(f"{a} - {b}")  # 遍历所有,用fillvalue填充

📊 序列通用操作

1. 长度和存在性检查

# len() - 获取长度test_cases = ["登录测试""注册测试""支付测试"]print(len(test_cases))  # 3# in - 检查元素是否存在has_login = "登录测试" in test_cases  # Truehas_security = "安全测试" in test_cases  # Falsenot_has_security = "安全测试" not in test_cases  # True

2. 连接和重复

# + 运算符 - 连接序列list1 = [123]list2 = [456]combined_list = list1 + list2  # [1, 2, 3, 4, 5, 6]tuple1 = (12)tuple2 = (34)combined_tuple = tuple1 + tuple2  # (1, 2, 3, 4)str1 = "Hello"str2 = "World"combined_str = str1 + " " + str2  # "Hello World"# * 运算符 - 重复序列repeated_list = [12] * 3  # [1, 2, 1, 2, 1, 2]repeated_tuple = (12) * 2  # (1, 2, 1, 2)repeated_str = "ab" * 3  # "ababab"

3. 最大值、最小值、求和

# max() - 最大值numbers = [52819]print(max(numbers))  # 9strings = ["apple""banana""cherry"]print(max(strings))  # "cherry"(按字母顺序)# min() - 最小值print(min(numbers))  # 1print(min(strings))  # "apple"# sum() - 求和print(sum(numbers))  # 25
# 实战:测试结果统计test_durations = [2.51.85.20.53.8]total_time = sum(test_durations)  # 13.8avg_time = total_time / len(test_durations)  # 2.76max_time = max(test_durations)  # 5.2min_time = min(test_durations)  # 0.5print(f"总时间: {total_time:.1f}s")print(f"平均时间: {avg_time:.1f}s")print(f"最长时间: {max_time:.1f}s")print(f"最短时间: {min_time:.1f}s")

4. 排序和反转

# sorted() - 返回排序后的新列表numbers = [5, 2, 8, 1, 9]sorted_numbers = sorted(numbers)  # [1, 2, 5, 8, 9]sorted_desc = sorted(numbers, reverse=True)  # [9, 8, 5, 2, 1]# 对字符串排序words = ["banana""apple""cherry""date"]sorted_words = sorted(words)  # ['apple', 'banana', 'cherry', 'date']# 对元组排序(返回列表)tuple_data = (5, 2, 8, 1, 9)sorted_from_tuple = sorted(tuple_data)  # [1, 2, 5, 8, 9]# reversed() - 返回反转的迭代器numbers = [1, 2, 3, 4, 5]reversed_numbers = list(reversed(numbers))  # [5, 4, 3, 2, 1]# 实战:按优先级排序测试用例test_cases = [    ("TC001""低", 1.5),    ("TC002""高", 2.3),    ("TC003""中", 0.8)]# 按优先级排序priority_order = {"高": 3, "中": 2, "低": 1}sorted_by_priority = sorted(    test_cases,     key=lambda x: priority_order[x[1]],     reverse=True)# [('TC002', '高', 2.3), ('TC003', '中', 0.8), ('TC001', '低', 1.5)]# 按执行时间排序sorted_by_time = sorted(test_cases, key=lambda x: x[2])# [('TC003', '中', 0.8), ('TC001', '低', 1.5), ('TC002', '高', 2.3)]

🔄 序列转换

序列类型转换

# 列表 ↔ 元组my_list = [123]my_tuple = tuple(my_list)  # (1, 2, 3)back_to_list = list(my_tuple)  # [1, 2, 3]# 字符串 ↔ 列表/元组my_str = "hello"str_to_list = list(my_str)  # ['h', 'e', 'l', 'l', 'o']str_to_tuple = tuple(my_str)  # ('h', 'e', 'l', 'l', 'o')# 列表/元组 → 字符串list_to_str = "".join(["h""e""l""l""o"])  # "hello"tuple_to_str = "".join(("h""e""l""l""o"))  # "hello"# 数字列表 → 字符串numbers = [12345]numbers_str = "".join(str(n) for n in numbers)  # "12345"numbers_str_comma = ",".join(str(n) for n in numbers)  # "1,2,3,4,5"

range对象

# range()创建数字序列range1 = range(5)          # 01234range2 = range(16)       # 12345range3 = range(1102)   # 13579range4 = range(100, -1)  # 10987654321# 转换为列表list_from_range = list(range(5))  # [0, 1, 2, 3, 4]# 遍历rangefor i in range(5):    print(f"执行第{i+1}次测试")# 遍历指定范围for i in range(16):  # 15    print(f"测试用例 {i}")# 反向遍历for i in range(50, -1):  # 51    print(f"倒计时: {i}")

📊 序列类型对比总结


📋 本章检查清单

  • [ ] 理解序列是有序的元素集合

  • [ ] 掌握序列的索引访问(正向和反向)

  • [ ] 掌握序列的切片操作

  • [ ] 掌握序列的遍历方法

  • [ ] 掌握序列的通用操作(长度、连接、重复等)

  • [ ] 掌握序列的转换方法

  • [ ] 理解列表、元组、字符串的区别

  • [ ] 能在测试中灵活使用各种序列

  • [ ] 掌握range对象的用法

  • [ ] 能编写序列相关的测试代码


🎉 恭喜!序列掌握完成

现在你已经全面掌握了Python中的序列操作:

关键收获

  1. ✅ 序列概念:有序元素的集合

  2. ✅ 索引切片:通过索引访问元素,通过切片获取子序列

  3. ✅ 序列操作:长度、连接、重复、遍历

  4. ✅ 序列函数:len()、max()、min()、sum()、sorted()

  5. ✅ 序列转换:不同类型序列之间的转换

  6. ✅ 实战应用:在测试中灵活使用序列

序列是Python编程的基础,掌握了序列操作,你就掌握了:

  • 数据处理的基本能力

  • 测试数据管理的方法

  • 测试结果分析的技巧

  • 测试用例调度的思路

下一章预告:语句结构

准备好了吗?让我们继续前进!🚀

记住:序列操作要多练习才能熟练掌握。尝试用不同的序列类型解决同一个问题,体会它们的差异和适用场景。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 13:15:43 HTTP/2.0 GET : https://f.mffb.com.cn/a/479058.html
  2. 运行时间 : 0.280356s [ 吞吐率:3.57req/s ] 内存消耗:4,537.34kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=bf7b31676b80307e8f22a8edba6ebac1
  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.001048s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001420s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000828s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.001396s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001388s ]
  6. SELECT * FROM `set` [ RunTime:0.025411s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001930s ]
  8. SELECT * FROM `article` WHERE `id` = 479058 LIMIT 1 [ RunTime:0.006572s ]
  9. UPDATE `article` SET `lasttime` = 1774588543 WHERE `id` = 479058 [ RunTime:0.014877s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.003888s ]
  11. SELECT * FROM `article` WHERE `id` < 479058 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001266s ]
  12. SELECT * FROM `article` WHERE `id` > 479058 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001145s ]
  13. SELECT * FROM `article` WHERE `id` < 479058 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002740s ]
  14. SELECT * FROM `article` WHERE `id` < 479058 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.004650s ]
  15. SELECT * FROM `article` WHERE `id` < 479058 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002026s ]
0.284676s