当前位置:首页>python>太顶了!10 个让Python开发效率翻倍的现代库

太顶了!10 个让Python开发效率翻倍的现代库

  • 2026-02-05 00:59:53
太顶了!10 个让Python开发效率翻倍的现代库

让你的代码更优雅,开发更顺畅

作为一名Python开发者,你是否也曾经历过这样的时刻:

  • 花半天时间配置虚拟环境,结果还是遇到依赖冲突
  • 需要做个简单GUI工具,但Tkinter的界面实在“复古”
  • 写爬虫时,不断与网站的反爬机制斗智斗勇
  • 调试时,对着晦涩的traceback一头雾水

如果你频频点头,那么今天这篇文章就是为你准备的。我整理了10个现代Python库,它们专门解决我们日常开发中的痛点,让你的开发效率直线提升。

1. Pixi

还在为Python的依赖管理头疼吗?pipconda的环境冲突、版本不兼容问题,常常让我们还没开始写代码,就已经精疲力尽。

Pixi是一个基于Conda生态的高性能包管理器,但它比传统方案快得多,也更简单。它的核心优势是:

  • 闪电般的速度:环境解析速度大幅提升
  • 跨平台一致性:通过pixi.lock锁文件确保团队每个人环境一致
  • 零配置启动:开箱即用,几乎没有学习成本

安装使用

# 一行命令安装curl -fsSL https://pixi.sh/install.sh | bash# 创建新项目pixi init my_projectcd my_project# 添加依赖pixi add numpy pandas matplotlib# 运行Pythonpixi run python main.py

Pixi就像你的私人环境管家,把所有依赖问题都处理得井井有条。你再也不用听到“在我电脑上能跑”这种话了。

2. Maliang

需要开发桌面工具,但又觉得PyQt太重量级,Tkinter太老旧?Maliang完美解决了这个问题。

它在Tkinter的Canvas上重新绘制所有组件,提供了Windows 11风格的现代化界面,支持深色/浅色主题,动画流畅,而且依然保持轻量级。

创建现代登录界面

import maliangfrom maliang import theme# 初始化窗口root = maliang.Tk(title="用户登录", size=(400350))theme.set_color_mode("dark")  # 设置深色主题# 创建画布cv = maliang.Canvas(root)cv.pack(fill="both", expand=True)# 添加标题maliang.Text(cv, (5040), text="账户登录", fontsize=24)# 邮箱输入框email_input = maliang.InputBox(cv, (5090), size=(30040),                                placeholder="请输入邮箱地址")# 密码输入框  password_input = maliang.InputBox(cv, (50140), size=(30040),                                 placeholder="请输入密码", show="●")# 状态提示status_label = maliang.Text(cv, (50240), text="", fontsize=12)defhandle_login(event):"""处理登录按钮点击"""    email = email_input.get().strip()    password = password_input.get()if"@"in email and"."in email.split("@")[-1]:        status_label.set(f"正在验证: {email}")# 这里可以添加实际的验证逻辑else:        status_label.set("邮箱格式不正确")# 登录按钮login_btn = maliang.Button(cv, (50190), size=(30040),                           text="立即登录", bg_color="#0078D4")login_btn.bind("<Button-1>", handle_login)# 运行应用root.mainloop()

运行效果:

一个现代化的深色主题登录窗口,包含邮箱输入框、密码输入框和登录按钮

Maliang特别适合需要快速构建专业外观桌面工具的开发者,比如数据可视化工具、配置管理界面等。

3. pydoll

传统的Web自动化工具如Selenium容易被检测,而pydoll则是一个专为规避现代反爬机制设计的库。

它基于Chrome DevTools协议,能自动移除浏览器自动化特征,轻松绕过Cloudflare等防护系统。

智能搜索示例

import asynciofrom pydoll.browser import Chromefrom pydoll.constants import Keyasyncdefsmart_search(query: str):"""使用pydoll进行智能搜索"""asyncwith Chrome(headless=Falseas browser:# 启动新标签页        tab = await browser.new_tab()# 访问Googleawait tab.go_to("https://www.google.com")await asyncio.sleep(2)  # 等待页面加载# 找到搜索框并输入        search_box = await tab.find("textarea[name='q']")await search_box.click()await search_box.type_text(query)# 按下回车await tab.keyboard.press(Key.ENTER)await asyncio.sleep(3)# 获取搜索结果        results = await tab.find_all("h3", timeout=5)        print(f"找到 {len(results)} 个结果:")for i, result in enumerate(results[:5], 1):try:                text = await result.text()                print(f"{i}{text}")except:continue# 截图保存await tab.screenshot("search_results.png")# 运行asyncio.run(smart_search("Python自动化测试"))

pydoll的优势在于其强大的反检测能力,特别适合需要与现代化网站交互的自动化任务。

4. Dramatiq

Celery虽然强大但配置复杂?Dramatiq提供了一个更简洁、更易用的选择。

它的API设计极其简洁,支持自动重试、死信队列等功能,是处理后台任务的理想选择。

异步任务处理系统

import dramatiqimport requestsfrom dramatiq.brokers.redis import RedisBrokerfrom datetime import datetime# 配置Redis作为消息代理broker = RedisBroker(host="localhost", port=6379)dramatiq.set_broker(broker)@dramatiq.actor(max_retries=3, time_limit=60000)defprocess_url(url: str):"""处理URL的后台任务"""try:        start_time = datetime.now()        print(f"[{start_time}] 开始处理: {url}")        response = requests.get(url, timeout=10)        processing_time = (datetime.now() - start_time).total_seconds()if response.status_code == 200:            char_count = len(response.text)            print(f"[{datetime.now()}] 成功: {url} "f"({char_count} 字符, 耗时: {processing_time:.2f}s)")return {"url": url, "status""success""size": char_count, "time": processing_time}else:            print(f"[{datetime.now()}] 失败: {url} - HTTP {response.status_code}")raise Exception(f"HTTP {response.status_code}")except Exception as e:        print(f"[{datetime.now()}] 错误处理 {url}{e}")raise# 触发重试@dramatiq.actordefsend_notification(message: str, user_id: int):"""模拟发送通知"""    print(f"发送通知给用户 {user_id}{message}")# 这里可以是邮件、短信、推送等return {"user_id": user_id, "message": message, "sent"True}# 主程序if __name__ == "__main__":# 提交任务到后台处理    urls_to_check = ["https://www.python.org","https://github.com","https://fastapi.tiangolo.com","https://docs.dramatiq.io"    ]for url in urls_to_check:        process_url.send(url)# 发送通知    send_notification.send("所有URL处理任务已提交", user_id=1001)    print("任务已提交到后台队列,主程序继续执行...")

运行这个程序,你会看到任务被异步执行,主程序不会阻塞。Dramatiq特别适合需要处理耗时操作的应用,比如批量数据处理、邮件发送、文件转换等。

5. Scrapling 🕸️:智能网页抓取

网页结构经常变化,导致爬虫失效?Scrapling引入了自适应选择器的概念,即使HTML结构改变,也能智能地找到目标数据。

智能商品信息提取

from scrapling.fetchers import StealthyFetcherfrom scrapling.selectors import AutoSelector# 创建智能抓取器fetcher = StealthyFetcher()defscrape_products(url: str):"""智能提取商品信息"""    print(f"正在抓取: {url}")# 获取页面    page = fetcher.fetch(url)# 使用自适应选择器    product_selector = AutoSelector(        patterns=["article.product""div.product-item","li.product"        ],        auto_save=True# 自动保存识别模式    )# 提取商品    products = product_selector.select_all(page)    results = []for product in products[:5]:  # 限制前5个# 尝试多种选择器模式提取名称        name = (product.css_first("h3 a"or                product.css_first("h2"or                product.css_first(".title"))# 提取价格        price = (product.css_first(".price"or                 product.css_first("span.price"or                 product.css_first("[class*='price']"))        product_info = {"name": name.text().strip() if name else"未找到名称","price": price.text().strip() if price else"未找到价格","link": name.attrs.get("href"if name elseNone        }        results.append(product_info)return results# 示例:抓取电商网站if __name__ == "__main__":    test_urls = ["https://books.toscrape.com",# 可以添加更多URL    ]for url in test_urls:        products = scrape_products(url)        print(f"\n从 {url} 抓取到的商品:")for i, product in enumerate(products, 1):            print(f"{i}{product['name']} - {product['price']}")

Scrapling的强大之处在于其自适应能力,即使网站改版,你的爬虫也有很大几率继续工作。

6. Pyecharts

厌倦了静态图表?Pyecharts将百度开源的ECharts可视化库带到Python中,让你轻松创建交互式图表。

创建交互式销售报表

from pyecharts.charts import Bar, Line, Piefrom pyecharts import options as optsfrom pyecharts.commons.utils import JsCode# 准备数据months = ["1月""2月""3月""4月""5月""6月"]online_sales = [450005200061000580007200085000]store_sales = [320003800042000390004500051000]categories = ["电子产品""服装""家居""图书""其他"]category_data = [3525201010]defcreate_sales_dashboard():"""创建销售数据仪表板"""# 1. 柱状图:线上线下销售对比    bar = (        Bar()        .add_xaxis(months)        .add_yaxis("线上销售额", online_sales,                  itemstyle_opts=opts.ItemStyleOpts(color="#5470c6"))        .add_yaxis("门店销售额", store_sales,                  itemstyle_opts=opts.ItemStyleOpts(color="#91cc75"))        .set_global_opts(            title_opts=opts.TitleOpts(                title="2024年上半年销售额对比",                subtitle="单位:元"            ),            tooltip_opts=opts.TooltipOpts(                trigger="axis",                axis_pointer_type="cross"            ),            toolbox_opts=opts.ToolboxOpts(                is_show=True,                feature={"saveAsImage": {"title""保存为图片"},"dataView": {"title""数据视图"},"magicType": {"title""切换类型""type": ["line""bar"]},                }            ),            xaxis_opts=opts.AxisOpts(                name="月份",                axislabel_opts=opts.LabelOpts(rotate=45)            ),            yaxis_opts=opts.AxisOpts(                name="销售额",                axislabel_opts=opts.LabelOpts(                    formatter=JsCode("function(value){return value/1000 + 'k';}")                )            )        )    )# 2. 饼图:销售品类分布    pie = (        Pie()        .add("", [list(z) for z in zip(categories, category_data)])        .set_global_opts(            title_opts=opts.TitleOpts(title="销售品类分布"),            legend_opts=opts.LegendOpts(                orient="vertical",                pos_top="15%",                pos_left="2%"            )        )        .set_series_opts(            tooltip_opts=opts.TooltipOpts(                formatter="{b}: {c}%"            ),            label_opts=opts.LabelOpts(formatter="{b}: {c}%")        )    )# 3. 折线图:销售趋势    line = (        Line()        .add_xaxis(months)        .add_yaxis("总销售额",            [o + s for o, s in zip(online_sales, store_sales)],            is_smooth=True,            label_opts=opts.LabelOpts(is_show=False),            linestyle_opts=opts.LineStyleOpts(width=3),            itemstyle_opts=opts.ItemStyleOpts(color="#fc8452")        )        .set_global_opts(            title_opts=opts.TitleOpts(title="销售趋势分析"),            tooltip_opts=opts.TooltipOpts(trigger="axis")        )    )# 渲染图表    bar.render("sales_bar.html")    pie.render("sales_pie.html")    line.render("sales_trend.html")    print("图表已生成:")    print("1. sales_bar.html - 销售额对比柱状图")    print("2. sales_pie.html - 品类分布饼图"    print("3. sales_trend.html - 销售趋势折线图")if __name__ == "__main__":    create_sales_dashboard()

生成的HTML文件可以直接在浏览器中打开,支持缩放、悬停提示、数据筛选等交互功能。这比静态图表强大太多了!

7. Better-exceptions

Python的默认错误信息经常让人困惑,特别是变量值不明确时。Better-exceptions通过丰富traceback信息,让调试变得直观。

调试示例

import better_exceptions# 启用更好的异常显示better_exceptions.hook()classShoppingCart:def__init__(self):        self.items = []        self.prices = []defadd_item(self, item_name: str, price: float):"""添加商品到购物车"""ifnot isinstance(price, (int, float)) or price <= 0:raise ValueError(f"无效的价格: {price}")        self.items.append(item_name)        self.prices.append(price)        print(f"已添加: {item_name} - ¥{price}")defcalculate_total(self, discount_rate=0.0):"""计算总价"""ifnot self.items:return0.0# 这里有潜在的类型错误        subtotal = sum(self.prices)# 模拟可能的分母为零错误        discount_factor = 1 / (1 - discount_rate)        total = subtotal * discount_factorreturn round(total, 2)defprocess_order(cart_data):"""处理订单"""    cart = ShoppingCart()# 添加商品for item in cart_data:        name = item.get("name""未知商品")        price = item.get("price"0)        cart.add_item(name, price)# 计算总价(这里会出错)    total = cart.calculate_total(discount_rate=1.0)  # 100%折扣?分母为零!return totalif __name__ == "__main__":# 测试数据    order_items = [        {"name""Python编程书""price"89.90},        {"name""机械键盘""price""499"},  # 字符串价格!        {"name""咖啡杯""price"39.90}    ]try:        total_price = process_order(order_items)        print(f"订单总价: ¥{total_price}")except Exception as e:        print("订单处理出错:")

运行这个程序时,better-exceptions会显示:

  • 每个变量的当前值
  • 错误发生时的调用栈
  • 颜色高亮的关键信息

这比默认的Python错误信息有用多了!

8. SQLGlot

在不同数据库之间迁移时,SQL方言的差异让人头疼。SQLGlot是一个SQL解析器和转换器,支持多种数据库方言。

跨数据库SQL转换

import sqlglotfrom sqlglot import expressions as expdeftranslate_sql_dialects():"""演示SQL方言转换"""# 原始SQL(PostgreSQL风格)    pg_sql = """    SELECT         u.user_id,        u.username,        COUNT(o.order_id) as order_count,        SUM(o.amount) as total_spent    FROM users u    LEFT JOIN orders o ON u.user_id = o.user_id    WHERE u.created_at >= '2024-01-01'      AND u.is_active = TRUE    GROUP BY u.user_id, u.username    HAVING COUNT(o.order_id) > 0    ORDER BY total_spent DESC    LIMIT 10    """    print("原始PostgreSQL SQL:")    print(pg_sql)    print("\n" + "="*60 + "\n")# 转换到不同方言    dialects = ["spark""bigquery""mysql""snowflake"]for dialect in dialects:try:            translated = sqlglot.transpile(                pg_sql,                 read="postgres"                write=dialect,                pretty=True            )[0]            print(f"{dialect.upper()} 版本:")            print(translated)            print("-"*40)except Exception as e:            print(f"转换到 {dialect} 失败: {e}")defoptimize_sql_query():"""优化SQL查询"""# 一个可以优化的查询    raw_query = """    SELECT         product_id,        product_name,        SUM(quantity) as total_qty    FROM sales    WHERE sale_date BETWEEN '2024-01-01' AND '2024-12-31'      AND product_category IN ('Electronics', 'Clothing')    GROUP BY product_id, product_name    HAVING SUM(quantity) > 100    ORDER BY total_qty DESC    """    print("原始查询:")    print(raw_query)# 解析和优化    expression = sqlglot.parse_one(raw_query)# 1. 提取公共表达式    optimized = sqlglot.optimize.optimize(expression)    print("\n优化后的查询:")    print(optimized.sql(pretty=True))# 2. 提取查询中的表名    tables = expression.find_all(exp.Table)    print(f"\n查询涉及的表: {[t.name for t in tables]}")# 3. 提取查询中的列名    columns = expression.find_all(exp.Column)    print(f"查询涉及的列: {[c.name for c in columns[:10]]}")if __name__ == "__main__":    print("1. SQL方言转换示例")    print("="*60)    translate_sql_dialects()    print("\n\n2. SQL查询优化示例")    print("="*60)    optimize_sql_query()

SQLGlot特别适合需要支持多数据库的应用,或者需要分析、优化现有SQL查询的场景。

9. Selectolax

BeautifulSoup使用简单但速度较慢?Selectolax是一个用Cython编写的高性能HTML解析器,速度比BeautifulSoup快数倍。

性能对比示例

import timeimport requestsfrom bs4 import BeautifulSoupfrom selectolax.parser import HTMLParserdefbenchmark_parsers(url: str, iterations: int = 10):"""对比不同解析器的性能"""# 获取网页内容    response = requests.get(url)    html_content = response.text    print(f"测试URL: {url}")    print(f"HTML大小: {len(html_content) / 1024:.1f} KB")    print(f"迭代次数: {iterations}")    print("\n" + "="*50)# 测试Selectolax    selectolax_times = []for i in range(iterations):        start = time.time()        tree = HTMLParser(html_content)# 提取一些数据        title = tree.css_first("title")if title:            _ = title.text()        links = tree.css("a")for link in links[:50]:if"href"in link.attributes:                _ = link.attributes["href"]        selectolax_times.append(time.time() - start)# 测试BeautifulSoup    soup_times = []for i in range(iterations):        start = time.time()        soup = BeautifulSoup(html_content, 'html.parser')# 提取同样的数据        title = soup.find("title")if title:            _ = title.text        links = soup.find_all("a", limit=50)for link in links:            _ = link.get("href")        soup_times.append(time.time() - start)# 输出结果    print(f"{'解析器':<15}{'平均时间':<12}{'最快时间':<12}{'最慢时间':<12}")    print("-"*50)    print(f"{'Selectolax':<15} "f"{sum(selectolax_times)/iterations*1000:<10.2f}ms  "f"{min(selectolax_times)*1000:<10.2f}ms  "f"{max(selectolax_times)*1000:<10.2f}ms")    print(f"{'BeautifulSoup':<15} "f"{sum(soup_times)/iterations*1000:<10.2f}ms  "f"{min(soup_times)*1000:<10.2f}ms  "f"{max(soup_times)*1000:<10.2f}ms")    speedup = (sum(soup_times)/sum(selectolax_times))    print(f"\nSelectolax 平均比 BeautifulSoup 快 {speedup:.1f} 倍")defcomplex_parsing_example():"""复杂HTML解析示例"""    url = "https://news.ycombinator.com"    response = requests.get(url)# 使用Selectolax解析    tree = HTMLParser(response.text)    print("Hacker News 头条新闻:")    print("-"*40)# 使用CSS选择器提取新闻条目    news_items = tree.css("tr.athing")for i, item in enumerate(news_items[:10], 1):# 标题        title_elem = item.css_first("span.titleline > a")        title = title_elem.text() if title_elem else"无标题"# 链接        link = title_elem.attributes.get("href""#"if title_elem else"#"# 分数(需要找下一个兄弟元素)        next_row = item.nextif next_row:            score_elem = next_row.css_first("span.score")            score = score_elem.text() if score_elem else"0 points"else:            score = "0 points"        print(f"{i}{title}")        print(f"   链接: {link[:60]}...")        print(f"   评分: {score}")        print()if __name__ == "__main__":# 性能测试    print("性能对比测试")    print("="*50)    benchmark_parsers("https://python.org", iterations=5)    print("\n\n实际解析示例")    print("="*50)    complex_parsing_example()

如果你需要处理大量HTML文档,Selectolax的速度优势会非常明显。

10. Tenacity

网络请求失败、API限流、数据库繁忙...这些临时性问题不应该让程序直接崩溃。Tenacity提供了优雅的重试机制。

智能重试策略

from tenacity import (    retry,     stop_after_attempt,     stop_after_delay,    wait_exponential,     wait_random,    wait_fixed,    retry_if_exception_type,    before_sleep_log,    after_log)import requestsimport loggingfrom datetime import datetime# 配置日志logging.basicConfig(level=logging.INFO)logger = logging.getLogger(__name__)classAPIClient:def__init__(self, base_url: str):        self.base_url = base_url        self.session = requests.Session()    @retry(# 停止条件:最多尝试5次或总时间不超过30秒        stop=(stop_after_attempt(5) | stop_after_delay(30)),# 等待策略:指数退避 + 随机抖动        wait=wait_exponential(multiplier=1, min=1, max=10) + wait_random(01),# 重试条件:仅对特定异常重试        retry=retry_if_exception_type((requests.ConnectionError,                                       requests.Timeout,                                      requests.HTTPError)),# 重试前的日志        before_sleep=before_sleep_log(logger, logging.WARNING),# 重试后的日志        after=after_log(logger, logging.INFO)    )deffetch_data(self, endpoint: str, params: dict = None):"""获取API数据,带智能重试"""        url = f"{self.base_url}/{endpoint}"        print(f"[{datetime.now().strftime('%H:%M:%S')}] 请求: {url}")        response = self.session.get(url, params=params, timeout=5)        response.raise_for_status()  # 如果状态码不是200,抛出HTTPErrorreturn response.json()    @retry(        stop=stop_after_attempt(3),        wait=wait_fixed(2),  # 固定等待2秒        retry=retry_if_exception_type(ValueError)    )defprocess_with_validation(self, data: dict):"""处理数据,带验证和重试"""        required_fields = ["id""name""value"]# 验证必需字段for field in required_fields:if field notin data:raise ValueError(f"缺少必需字段: {field}")# 模拟处理逻辑if data["value"] < 0:raise ValueError("值不能为负数")# 数据处理        processed = {"id": data["id"],"name": data["name"].upper(),"value": data["value"] * 1.1,  # 增加10%"timestamp": datetime.now().isoformat()        }return processeddefsimulate_unreliable_api():"""模拟不可靠的API"""import randomimport time    attempts = 0whileTrue:        attempts += 1        time.sleep(0.5)# 随机失败if random.random() < 0.7and attempts < 4:  # 前3次有70%概率失败raise requests.ConnectionError(f"模拟连接失败 (尝试次数: {attempts})")# 成功return {"data""成功获取""attempts": attempts}# 使用示例if __name__ == "__main__":    print("Tenacity 重试机制演示")    print("="*50)# 创建API客户端    client = APIClient("https://jsonplaceholder.typicode.com")# 示例1:获取数据(带重试)try:        print("\n1. 获取TODO数据:")        todos = client.fetch_data("todos", {"userId"1"_limit"3})for todo in todos:            print(f"   - {todo['title'][:30]}... (完成: {todo['completed']})")except Exception as e:        print(f"   最终失败: {e}")# 示例2:模拟不可靠API    print("\n2. 测试不可靠API:")    @retry(        stop=stop_after_attempt(5),        wait=wait_exponential(multiplier=1, min=1, max=5)    )defcall_unreliable_api():return simulate_unreliable_api()try:        result = call_unreliable_api()        print(f"   最终成功: {result}")except Exception as e:        print(f"   所有尝试均失败: {e}")# 示例3:数据处理验证    print("\n3. 数据处理验证:")    test_data = [        {"id"1"name""test""value"100},  # 有效        {"id"2"name""test"},  # 缺少value字段        {"id"3"name""test""value"-50}  # 负值    ]for data in test_data:try:            result = client.process_with_validation(data)            print(f"   处理成功: {result}")except ValueError as e:            print(f"   验证失败: {e}")

Tenacity让错误处理变得优雅而强大,代码更加健壮。

写在最后

这10个库各有侧重,但共同点是都能显著提升开发效率

  1. Pixi - 环境管理从未如此简单
  2. Maliang - 让传统GUI焕发现代光彩
  3. pydoll - 智能绕过现代反爬机制
  4. Dramatiq - 轻量级异步任务处理
  5. Scrapling - 自适应网页抓取
  6. Pyecharts - 交互式数据可视化
  7. Better-exceptions - 调试信息增强
  8. SQLGlot - SQL方言转换与优化
  9. Selectolax - 极速HTML解析
  10. Tenacity - 优雅的重试机制

这些工具代表了一个趋势:Python开发正变得越来越高效、越来越智能。我们不再需要重复造轮子,而是可以利用这些优秀库解决常见问题。

你的工具箱里还有哪些私藏好用的Python库?

欢迎在评论区分享你的发现,或者聊聊你在使用这些库时的经验和技巧!如果文章对你有帮助,别忘了点赞、收藏、转发,让更多Python开发者受益~

注:本文提到的所有库均为开源项目,具体使用请参考其官方文档。示例代码在Python 3.8+环境下测试通过。

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

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

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-07 17:22:48 HTTP/2.0 GET : https://f.mffb.com.cn/a/471758.html
  2. 运行时间 : 0.119742s [ 吞吐率:8.35req/s ] 内存消耗:4,545.54kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=f7eb94a85bbc18c373c3381bb3e38c0d
  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.000425s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000701s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.007885s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000319s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000698s ]
  6. SELECT * FROM `set` [ RunTime:0.000230s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000726s ]
  8. SELECT * FROM `article` WHERE `id` = 471758 LIMIT 1 [ RunTime:0.005577s ]
  9. UPDATE `article` SET `lasttime` = 1770456169 WHERE `id` = 471758 [ RunTime:0.009998s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000253s ]
  11. SELECT * FROM `article` WHERE `id` < 471758 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.004349s ]
  12. SELECT * FROM `article` WHERE `id` > 471758 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000483s ]
  13. SELECT * FROM `article` WHERE `id` < 471758 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001369s ]
  14. SELECT * FROM `article` WHERE `id` < 471758 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.013223s ]
  15. SELECT * FROM `article` WHERE `id` < 471758 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.008332s ]
0.121387s