当前位置:首页>python>【Python】常用内置和标准库

【Python】常用内置和标准库

  • 2026-01-14 02:31:38
【Python】常用内置和标准库
01
内置库和标准库介绍
         Python内置了许多功能强大的库,Python内置库是指Python解释器自带的一些库,它们在安装Python解释器时就已经包含在其中,可以直接使用,无需额外安装。内置库包含了一些常用的功能,如数学运算、字符串处理、文件操作等,让使用者能够更加便捷地完成各种任务。
       而Python标准库是指Python官方提供的一系列库,它们属于Python语言的一部分,提供了丰富的功能模块和工具,用于开发各种类型的应用程序。标准库包含了诸如操作系统接口、文件和目录访问、网络通信、数据库接口、图形界面等方面的功能模块。

02

常用库

1、math:提供数学函数,如三角函数、对数函数等。
        math模块提供标准算数运算函数的标准库。是python内置库的科学计算,这个库是专门进行科学计算的库。
示例:
import math# 返回欧拉数 (2.7182...)print(math.e)  # 输出 2.718281828459045# 返回正无穷大浮点数print(math.inf) # 输出 inf# 返回一个浮点值 NaN (not a number) print(math.nan) # 输出 nan# π一般指圆周率。 圆周率 PI (3.1415...) print(math.pi)  # 输出 3.141592653589793# 数学常数 τ = 6.283185...,精确到可用精度。Tau 是一个圆周常数,等于 2π,圆的周长与半径之比。print(math.tau)  # 输出 6.283185307179586# 平方根print(math.sqrt(16))  # 输出 4.0# 幂print(math.pow(23))  # 输出 8.0# 下取整print(math.floor(3.7))  # 输出 3# 上取整print(math.ceil(3.2))  # 输出 4# 自然对数print(math.log(10))  # 自然对数print(math.log(10010))  # 以 10 为底的对数# 以 10 为底的对数print(math.log10(100))  # 输出 2.0# 从 7 个项目中选择 5 个项目的组合总数print(math.comb(75))  # 输出 21# 输出正整数的阶乘print(math.factorial(6)) # 输出 720# 正弦print(math.sin(math.pi / 2))  # 输出 1.0# 余弦print(math.cos(math.pi))  # 输出 -1.0# 正切print(math.tan(math.pi / 4))  # 输出 1.0# 反正弦print(math.asin(1))  # 输出 1.570796326794896
2、os:提供操作系统相关功能,如文件操作、进程管理等。
os模块是 Python 内置的与操作系统中的文件系统相关的模块,该模块依赖于操作系统os模块提供与操作系统交互的函数,例如创建目录、更改当前工作目录、读取环境变量等。
示例:
import os# 获取当前工作目录print("Current Working Directory:", os.getcwd())# 改变当前工作目录os.chdir('/path/to/directory')print("New Working Directory:", os.getcwd())# 列出目录下的文件和文件夹print("Directory Listing:", os.listdir('/path/to/directory'))# 创建单个目录os.mkdir('/path/to/new_directory')# 创建多级目录os.makedirs('/path/to/new_directory/subdirectory')# 删除空目录os.rmdir('/path/to/empty_directory')# 递归地删除空目录os.removedirs('/path/to/empty_directory/subdirectory')# 删除文件os.remove('/path/to/file.txt')# 重命名文件os.rename('/path/to/old_name.txt''/path/to/new_name.txt')# 获取文件状态info = os.stat('/path/to/file.txt')print("File Size:", info.st_size)print("Last Modified Time:", info.st_mtime)# 访问环境变量print("Home directory:", os.environ['HOME'])# 组合路径path = os.path.join('dir1''dir2''file.txt')print("Path:", path)# 遍历目录树for root, dirs, files in os.walk('/path/to/directory'):    print(root, ":"dirs, files)# 运行系统命令os.system('ls -l /path/to/directory')

3、 random  :是 Python 中用于生成伪随机数的标准库。

random 模块是 Python 的一个常用的内置模块,模块提供了生成随机数的功能,包含了多种生成随机数的函数,比如生成随机整数、随机浮点数、从序列中随机选择元素等。
示例:
import random# 生成随机浮点数random_float = random.random()  # 生成一个01之间的随机浮点数random_uniform = random.uniform(1.55.5)  # 生成一个1.55.5之间的随机浮点数# 生成随机整数random_int = random.randint(110)  # 生成一个110之间的随机整数random_range = random.randrange(010010)  # 从0100之间,按10的步长,生成一个随机整数# 随机选择my_list = ['apple', 'banana', 'cherry', 'date']random_choice = random.choice(my_list)  # 从列表中随机选择一个元素random_choices = random.choices(my_list, weights=[2111], k=2)  # 从列表中随机选择两个元素,设置了权重# 打乱顺序my_list = [1, 2, 3, 4, 5]random.shuffle(my_list)  # 打乱列表中元素的顺序# 生成随机样本population = ['red', 'green', 'blue', 'yellow', 'orange']random_sample = random.sample(population, 3)  # 从总体中随机选择3个唯一元素# 设置随机种子random.seed(42)  # 初始化随机数生成器,使用整数42作为种子

4. sys :提供了与Python解释器进行交互的功能,例如命令行参数和标准输入输出.

         sys模块Python内置模块,模块提供了一些简单的函数和变量,用于访问与Python解释器和Python环境相关的变量和功能。示例:
import sys# 获取命令行参数print("Command Line Arguments:", sys.argv)# 退出程序if len(sys.argv) != 2:    print("Usage: script.py <filename>")    sys.exit(1)# 读取标准输入print("Standard Input:")for line in sys.stdin:    print(line.strip())# 输出到标准输出print("Hello, World!", file=sys.stdout)# 输出到标准错误print("Error occurred.", file=sys.stderr)# 获取操作系统平台名称print("Platform:", sys.platform)# 获取 Python 版本信息print("Version:", sys.version)# 获取 Python 版本信息元组print("Version Info:", sys.version_info)print(f"Python {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}")# 获取最大整数大小print("Max Int Size:", sys.maxsize)# 获取对象大小print("Size of 10:", sys.getsizeof(10))# 获取已导入模块print("Imported Modules:"list(sys.modules.keys()))# 获取模块搜索路径print("Module Search Path:", sys.path)

5. datetime :提供了处理日期和时间的功能.

        datetime模块是Python中用于处理日期和时间的内置模块,提供了各种函数和类来操作日期、时间和时间间隔。
示例:
from datetime import datetime, timedelta# 获取当前日期和时间now = datetime.now()print("Current Date and Time:", now)# 获取当前日期和时间(UTC)utc_now = datetime.utcnow()print("Current Date and Time (UTC):", utc_now)# 解析字符串为 datetime 对象date_str = "2023-09-15 12:00:00"dt = datetime.strptime(date_str, "%Y-%m-%d%H:%M:%S")print("Parsed Date and Time:", dt)# 格式化 datetime 对象为字符串formatted_date = now.strftime("%Y-%m-%d%H:%M:%S")print("Formatted Date and Time:", formatted_date)# 创建日期、时间和日期时间对象my_date = datetime.date(2023915)my_time = datetime.time(1200)my_datetime = datetime.datetime(20239151200)print("Date Object:", my_date)print("Time Object:", my_time)print("Datetime Object:", my_datetime)# 从 ISO 8601 格式的日期时间字符串创建 datetime 对象iso_date_str = "2023-09-15T12:00:00"iso_dt = datetime.fromisoformat(iso_date_str)print("ISO Parsed Date and Time:", iso_dt)# 替换 datetime 对象中的特定字段new_datetime = now.replace(hour=0, minute=0, second=0, microsecond=0)print("Replaced Date and Time:", new_datetime)# 表示两个日期或时间之间的差值delta = timedelta(days=365, hours=12)print("Time Delta:", delta)

6、 re:提供了正则表达式的功能,用于字符串的匹配和操作.

        re模块是专门用于处理正则表达式的标准库。它提供了一系列函数和类,使得在Python程序中可以使用正则表达式进行字符串的搜索、替换、分割等操作。
示例:
import re# 查找匹配的模式text = "Hello, my name is John Doe. My email is johndoe@example.com."pattern = r"\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b"# 查找所有匹配项matches = re.findall(pattern, text)print("Matches found:", matches)# 替换文本中的模式text = "The quick brown fox jumps over the lazy dog."new_text = re.sub(r"fox""cat", text)print("New text:", new_text)# 分割字符串text = "one;two;three;four;five"split_text = re.split(r";", text)print("Split text:", split_text)# 使用 match 和 search 方法text = "The quick brown fox jumps over the lazy dog."# 从字符串开头开始匹配match = re.match(r"The", text)if match:    print("Match at beginning:"match.group())# 在整个字符串中搜索search_result = re.search(r"fox", text)if search_result:    print("Search result:", search_result.group(), "at position", search_result.start())

7、json :提供了处理JSON数据的功能.

        json模块Python中的一个非常重要的标准库,用于处理JSON数据。提供了在Python对像和JSON数据之间进行转换的功能。
示例:
import json# 将Python对象编码为JSON字符串data = {'name''Alice''age'25}json_str = json.dumps(data)print(f"JSON字符串: {json_str}")# 将JSON字符串解码为Python对象decoded_data = json.loads(json_str)print(f"解码后的数据: {decoded_data}")
        Python内置和标准库提供了一组强大且多样化的内置模块,能够帮助开发者高效地完成各种任务.从操作系统交互、命令行参数处理、日期时间操作、随机数生成、正则表达式匹配到JSON数据处理和高级数据结构,这些模块覆盖了开发中的常见需求.掌握这些内置模块,可以大大提高编程效率和代码的可读性。
关注微信公众号,点击菜单栏(学习编程->软件下载)获取软件安装包。

云编新视界分享的内容仅做学习交流,非商业用途,以上内容来自于网络,版权归原作者所有,如有侵权,请联系后台快速处理或删除,谢谢支持)

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 21:07:37 HTTP/2.0 GET : https://f.mffb.com.cn/a/462485.html
  2. 运行时间 : 0.208127s [ 吞吐率:4.80req/s ] 内存消耗:4,540.25kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=810bfd5ade2df17f14d1ce47e0c3a194
  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.001003s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001356s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000607s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000598s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001348s ]
  6. SELECT * FROM `set` [ RunTime:0.000504s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001423s ]
  8. SELECT * FROM `article` WHERE `id` = 462485 LIMIT 1 [ RunTime:0.001011s ]
  9. UPDATE `article` SET `lasttime` = 1770556057 WHERE `id` = 462485 [ RunTime:0.023049s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.006645s ]
  11. SELECT * FROM `article` WHERE `id` < 462485 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001184s ]
  12. SELECT * FROM `article` WHERE `id` > 462485 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001058s ]
  13. SELECT * FROM `article` WHERE `id` < 462485 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002265s ]
  14. SELECT * FROM `article` WHERE `id` < 462485 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002221s ]
  15. SELECT * FROM `article` WHERE `id` < 462485 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.001765s ]
0.211799s