当前位置:首页>python>Python AI基础:Matplotlib与Seaborn数据可视化

Python AI基础:Matplotlib与Seaborn数据可视化

  • 2026-06-29 09:26:07
Python AI基础:Matplotlib与Seaborn数据可视化
📝 本章学习目标:本章是Python AI基础部分,帮助读者建立扎实的Python编程基础。通过本章学习,你将全面掌握"Python AI基础:Matplotlib与Seaborn数据可视化"这一核心主题。

一、引言:为什么这个话题如此重要

在人工智能快速发展的今天,Python AI基础:Matplotlib与Seaborn数据可视化已经成为每个AI从业者必须掌握的核心技能。Python作为AI开发的主流语言,其丰富的生态系统和简洁的语法使其成为机器学习和深度学习的首选工具。

1.1 背景与意义

💡 核心认知:Python在AI领域的统治地位并非偶然。其简洁的语法、丰富的库生态、活跃的社区支持,使其成为AI开发的不二之选。掌握Python AI技术栈,是进入AI行业的必经之路。

从NumPy的高效数组运算,到TensorFlow和PyTorch的深度学习框架,Python已经构建了完整的AI开发生态。据统计,超过90%的AI项目使用Python作为主要开发语言,AI岗位的招聘要求中Python几乎是标配。

1.2 本章结构概览

为了帮助读者系统性地掌握本章内容,我将从以下几个维度展开:

二、核心概念解析

2.1 基本定义

让我们首先明确几个核心概念:

概念一:基础定义

Python AI基础:Matplotlib与Seaborn数据可视化是Python AI开发中的核心主题,涉及数据处理、模型构建、训练优化等关键环节。

概念二:技术内涵

从技术角度看,这一概念包含以下几个层面:

2.2关键术语解释

注意:以下术语是理解本章内容的基础,请务必掌握。

术语1:核心概念

这是理解Python AI基础:Matplotib与Seabom数据可视化四的关键。在A开发中,我们需要深入理解其背后的数学原理和实现细节。

术语2:技术指标

在评估相关技术时,我们通常关注以下指标:

准确性:模型预测的正确程度。

效率:计算速度和资源消耗

,可扩展性:适应更大规模数据的能力

,可解释性:理解模型决策过程的能力

2.3与相关概念的关系

技巧:理解概念之间的关系,有助于建立完整的知识体系。

三、技术原理深入

3.1 核心算法原理

🔧 技术深度:本节将深入探讨技术实现细节。

Python AI基础:Matplotlib与Seaborn数据可视化的核心实现涉及以下关键技术:

技术一:基础实现

"""Python AI基础:Matplotlib与Seaborn数据可视化 - 基础实现示例作者:AI教程团队"""import numpy as npimport pandas as pdfrom typing import ListDictOptionalTupleimport warningswarnings.filterwarnings('ignore')class CoreAIModel:    """    AI模型基础类    这是一个展示Python AI基础:Matplotlib与Seaborn数据可视化核心概念的示例类,    包含了数据处理、模型训练、预测评估的完整流程。    """    def __init__(self,                  learning_rate: float = 0.01,                 epochs: int = 100,                 batch_size: int = 32):        """        初始化模型        Args:            learning_rate: 学习率            epochs: 训练轮数            batch_size: 批量大小        """        self.learning_rate = learning_rate        self.epochs = epochs        self.batch_size = batch_size        self.weights = None        self.bias = None        self.loss_history = []    def _initialize_parameters(self, n_features: int):        """初始化模型参数"""        np.random.seed(42)        self.weights = np.random.randn(n_features) * 0.01        self.bias = 0.0    def _forward(self, X: np.ndarray) -> np.ndarray:        """前向传播"""        return np.dot(X, self.weights) + self.bias    def _compute_loss(self, y_true: np.ndarray, y_pred: np.ndarray) -> float:        """计算损失函数(均方误差)"""        return np.mean((y_true - y_pred) ** 2)    def _backward(self, X: np.ndarray, y_true: np.ndarray, y_pred: np.ndarray):        """反向传播计算梯度"""        m = len(y_true)        dw = -2/m * np.dot(X.T, (y_true - y_pred))        db = -2/m * np.sum(y_true - y_pred)        return dw, db    def fit(self, X: np.ndarray, y: np.ndarray) -> 'CoreAIModel':        """        训练模型        Args:            X: 特征矩阵            y: 目标变量        Returns:            self: 训练后的模型实例        """        # 初始化参数        n_samples, n_features = X.shape        self._initialize_parameters(n_features)        # 训练循环        for epoch in range(self.epochs):            # 小批量训练            indices = np.random.permutation(n_samples)            X_shuffled = X[indices]            y_shuffled = y[indices]            for i in range(0, n_samples, self.batch_size):                X_batch = X_shuffled[i:i+self.batch_size]                y_batch = y_shuffled[i:i+self.batch_size]                # �前向传播                y_pred = self._forward(X_batch)                # 计算损失                loss = self._compute_loss(y_batch, y_pred)                # 反向传播                dw, db = self._backward(X_batch, y_batch, y_pred)                # 更新参数                self.weights -= self.learning_rate * dw                self.bias -= self.learning_rate * db            # 记录损失            if (epoch + 1) % 10 == 0:                y_pred_full = self._forward(X)                loss = self._compute_loss(y, y_pred_full)                self.loss_history.append(loss)                print(f"Epoch {epoch+1}/{self.epochs}, Loss: {loss:.4f}")        return self    def predict(self, X: np.ndarray) -> np.ndarray:        """        预测        Args:            X: 特征矩阵        Returns:            预测结果        """        return self._forward(X)    def score(self, X: np.ndarray, y: np.ndarray) -> float:        """        计算R²分数        Args:            X: 特征矩阵            y: 真实值        Returns:            R²分数        """        y_pred = self.predict(X)        ss_res = np.sum((y - y_pred) ** 2)        ss_tot = np.sum((y - np.mean(y)) ** 2)        return 1 - (ss_res / ss_tot)# 使用示例if __name__ == "__main__":    # 生成示例数据    np.random.seed(42)    X = np.random.randn(10005)    true_weights = np.array([1.5, -2.00.51.0, -0.5])    y = np.dot(X, true_weights) + np.random.randn(1000) * 0.1    # 划分训练集和测试集    split = int(0.8 * len(X))    X_train, X_test = X[:split], X[split:]    y_train, y_test = y[:split], y[split:]    # 训练模型    model = CoreAIModel(learning_rate=0.01, epochs=100, batch_size=32)    model.fit(X_train, y_train)    # 评估模型    train_score = model.score(X_train, y_train)    test_score = model.score(X_test, y_test)    print(f"\n训练集R²: {train_score:.4f}")    print(f"测试集R²: {test_score:.4f}")

技术二:进阶实现

"""Python AI基础:Matplotlib与Seaborn数据可视化 - 进阶实现示例使用TensorFlow/PyTorch实现"""import tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras import layersimport torchimport torch.nn as nnimport torch.optim as optim# ============== TensorFlow实现 ==============class TensorFlowModel:    """TensorFlow版本的模型实现"""    def __init__(self, input_dim: int, hidden_units: List[int] = [6432]):        """        初始化TensorFlow模型        Args:            input_dim: 输入维度            hidden_units: 隐藏层单元数列表        """        self.model = self._build_model(input_dim, hidden_units)    def _build_model(self, input_dim: int, hidden_units: List[int]) -> keras.Model:        """构建模型架构"""        inputs = keras.Input(shape=(input_dim,))        x = inputs        for units in hidden_units:            x = layers.Dense(units, activation='relu')(x)            x = layers.BatchNormalization()(x)            x = layers.Dropout(0.2)(x)        outputs = layers.Dense(1)(x)        model = keras.Model(inputs=inputs, outputs=outputs)        model.compile(            optimizer=keras.optimizers.Adam(learning_rate=0.001),            loss='mse',            metrics=['mae']        )        return model    def train(self, X_train, y_train, X_val, y_val, epochs=100, batch_size=32):        """训练模型"""        history = self.model.fit(            X_train, y_train,            validation_data=(X_val, y_val),            epochs=epochs,            batch_size=batch_size,            verbose=1        )        return history    def predict(self, X):        """预测"""        return self.model.predict(X)# ============== PyTorch实现 ==============class PyTorchModel(nn.Module):    """PyTorch版本的模型实现"""    def __init__(self, input_dim: int, hidden_units: List[int] = [6432]):        """        初始化PyTorch模型        Args:            input_dim: 输入维度            hidden_units: 隐藏层单元数列表        """        super(PyTorchModel, self).__init__()        layers_list = []        prev_units = input_dim        for units in hidden_units:            layers_list.append(nn.Linear(prev_units, units))            layers_list.append(nn.ReLU())            layers_list.append(nn.BatchNorm1d(units))            layers_list.append(nn.Dropout(0.2))            prev_units = units        layers_list.append(nn.Linear(prev_units, 1))        self.network = nn.Sequential(*layers_list)    def forward(self, x: torch.Tensor) -> torch.Tensor:        """前向传播"""        return self.network(x)    def train_model(self, train_loader, val_loader, epochs=100, lr=0.001):        """训练模型"""        criterion = nn.MSELoss()        optimizer = optim.Adam(self.parameters(), lr=lr)        train_losses = []        val_losses = []        for epoch in range(epochs):            # 训练阶段            self.train()            train_loss = 0.0            for X_batch, y_batch in train_loader:                optimizer.zero_grad()                outputs = self(X_batch)                loss = criterion(outputs, y_batch)                loss.backward()                optimizer.step()                train_loss += loss.item()            # 验证阶段            self.eval()            val_loss = 0.0            with torch.no_grad():                for X_batch, y_batch in val_loader:                    outputs = self(X_batch)                    loss = criterion(outputs, y_batch)                    val_loss += loss.item()            train_losses.append(train_loss / len(train_loader))            val_losses.append(val_loss / len(val_loader))            if (epoch + 1) % 10 == 0:                print(f"Epoch {epoch+1}/{epochs}, "                      f"Train Loss: {train_losses[-1]:.4f}, "                      f"Val Loss: {val_losses[-1]:.4f}")        return train_losses, val_losses# 使用示例if __name__ == "__main__":    # TensorFlow示例    print("=== TensorFlow实现 ===")    tf_model = TensorFlowModel(input_dim=5)    # tf_model.train(X_train, y_train, X_val, y_val)    # PyTorch示例    print("\n=== PyTorch实现 ===")    torch_model = PyTorchModel(input_dim=5)    print(torch_model)

3.2 数据处理流程

📊 数据处理

"""数据处理完整流程"""import pandas as pdimport numpy as npfrom sklearn.model_selection import train_test_splitfrom sklearn.preprocessing import StandardScaler, LabelEncoderfrom sklearn.impute import SimpleImputerclass DataProcessor:    """数据处理类"""    def __init__(self):        self.scaler = StandardScaler()        self.label_encoders = {}        self.imputer = SimpleImputer(strategy='mean')    def process(self,                 data: pd.DataFrame,                target_col: str,                categorical_cols: List[str] = None,                test_size: float = 0.2) -> Tuple:        """        完整的数据处理流程        Args:            data: 原始数据            target_col: 目标列名            categorical_cols: 类别列名列表            test_size: 测试集比例        Returns:            处理后的训练集和测试集        """        # 1. 分离特征和目标        X = data.drop(columns=[target_col])        y = data[target_col]        # 2. 处理缺失值        X = pd.DataFrame(            self.imputer.fit_transform(X.select_dtypes(include=[np.number])),            columns=X.select_dtypes(include=[np.number]).columns        )        # 3. 编码类别特征        if categorical_cols:            for col in categorical_cols:                if col in X.columns:                    le = LabelEncoder()                    X[col] = le.fit_transform(X[col].astype(str))                    self.label_encoders[col] = le        # 4. 标准化        X_scaled = self.scaler.fit_transform(X)        # 5. 划分数据集        X_train, X_test, y_train, y_test = train_test_split(            X_scaled, y, test_size=test_size, random_state=42        )        return X_train, X_test, y_train, y_test# 使用示例if __name__ == "__main__":    # 创建示例数据    data = pd.DataFrame({        'feature1': np.random.randn(1000),        'feature2': np.random.randn(1000),        'feature3': np.random.choice(['A''B''C'], 1000),        'target': np.random.randn(1000)    })    processor = DataProcessor()    X_train, X_test, y_train, y_test = processor.process(        data, target_col='target', categorical_cols=['feature3']    )    print(f"训练集形状: {X_train.shape}")    print(f"测试集形状: {X_test.shape}")

3.3 模型评估方法

💡 评估指标

"""模型评估工具"""from sklearn.metrics import (    accuracy_score, precision_score, recall_score, f1_score,    roc_auc_score, confusion_matrix, classification_report,    mean_squared_error, mean_absolute_error, r2_score)import matplotlib.pyplot as pltimport seaborn as snsclass ModelEvaluator:    """模型评估类"""    @staticmethod    def evaluate_classification(y_true, y_pred, y_prob=None):        """评估分类模型"""        metrics = {            'accuracy': accuracy_score(y_true, y_pred),            'precision': precision_score(y_true, y_pred, average='weighted'),            'recall': recall_score(y_true, y_pred, average='weighted'),            'f1': f1_score(y_true, y_pred, average='weighted')        }        if y_prob is not None:            metrics['roc_auc'] = roc_auc_score(y_true, y_prob, multi_class='ovr')        return metrics    @staticmethod    def evaluate_regression(y_true, y_pred):        """评估回归模型"""        return {            'mse': mean_squared_error(y_true, y_pred),            'rmse': np.sqrt(mean_squared_error(y_true, y_pred)),            'mae': mean_absolute_error(y_true, y_pred),            'r2': r2_score(y_true, y_pred)        }    @staticmethod    def plot_confusion_matrix(y_true, y_pred, labels=None):        """绘制混淆矩阵"""        cm = confusion_matrix(y_true, y_pred)        plt.figure(figsize=(86))        sns.heatmap(cm, annot=True, fmt='d', cmap='Blues',                    xticklabels=labels, yticklabels=labels)        plt.title('混淆矩阵')        plt.xlabel('预测值')        plt.ylabel('真实值')        plt.show()    @staticmethod    def plot_learning_curve(train_losses, val_losses):        """绘制学习曲线"""        plt.figure(figsize=(106))        plt.plot(train_losses, label='训练损失')        plt.plot(val_losses, label='验证损失')        plt.xlabel('Epoch')        plt.ylabel('Loss')        plt.title('学习曲线')        plt.legend()        plt.grid(True)        plt.show()# 使用示例if __name__ == "__main__":    # 分类评估示例    y_true_cls = [0101010011]    y_pred_cls = [0100011011]    cls_metrics = ModelEvaluator.evaluate_classification(y_true_cls, y_pred_cls)    print("分类指标:", cls_metrics)    # 回归评估示例    y_true_reg = np.array([1.02.03.04.05.0])    y_pred_reg = np.array([1.11.93.23.85.1])    reg_metrics = ModelEvaluator.evaluate_regression(y_true_reg, y_pred_reg)    print("回归指标:", reg_metrics)

四、实践应用指南

4.1 应用场景分析

✅ 核心场景:以下是Python AI基础:Matplotlib与Seaborn数据可视化的主要应用场景。

场景一:数据分析与挖掘

# 数据分析完整流程示例import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport seaborn as snsfrom sklearn.ensemble import RandomForestClassifierfrom sklearn.model_selection import cross_val_scoredef analyze_dataset(data_path: str):    """完整的数据分析流程"""    # 1. 加载数据    data = pd.read_csv(data_path)    print("数据形状:", data.shape)    print("\n数据概览:")    print(data.head())    # 2. 数据基本信息    print("\n数据类型:")    print(data.dtypes)    print("\n缺失值统计:")    print(data.isnull().sum())    # 3. 描述性统计    print("\n描述性统计:")    print(data.describe())    # 4. 可视化分析    # 数值特征分布    numeric_cols = data.select_dtypes(include=[np.number]).columns    fig, axes = plt.subplots(22, figsize=(1210))    for i, col in enumerate(numeric_cols[:4]):        ax = axes[i//2, i%2]        data[col].hist(ax=ax, bins=30, edgecolor='black')        ax.set_title(f'{col}分布')        ax.set_xlabel(col)        ax.set_ylabel('频数')    plt.tight_layout()    plt.show()    # 5. 相关性分析    plt.figure(figsize=(108))    correlation = data[numeric_cols].corr()    sns.heatmap(correlation, annot=True, cmap='coolwarm', center=0)    plt.title('特征相关性热力图')    plt.show()    return data# 使用示例# data = analyze_dataset('your_data.csv')

4.2 实施步骤详解

🔧 操作指南:以下是完整的实施步骤。

步骤一:环境准备

# 创建虚拟环境conda create -n ai_env python=3.9conda activate ai_env# 安装核心库pip install numpy pandas matplotlib seabornpip install scikit-learn tensorflow torchpip install jupyter notebook# 验证安装python -c "import tensorflow as tf; print(tf.__version__)"python -c "import torch; print(torch.__version__)"

步骤二:项目结构

## AI项目标准目录结构project/├── data/               # 数据目录│   ├── raw/           # 原始数据│   ├── processed/     # 处理后数据│   └── external/      # 外部数据├── notebooks/         # Jupyter笔记本│   └── exploration.ipynb├── src/               # 源代码│   ├── data/         # 数据处理│   ├── features/     # 特征工程│   ├── models/       # 模型定义│   └── utils/        # 工具函数├── tests/             # 测试代码├── configs/           # 配置文件├── requirements.txt   # 依赖列表└── README.md          # 项目说明
步骤三:模型开发流程

4.3 最佳实践分享

💡 经验总结:

最佳实践一:代码规范

① 使用类型注解

② 编写文档字符串

③ 遵循PEP8规范

④ 添加单元测试

最佳实践二:实验管理

使用版本控制

记录实验参数

保存模型检查点

可视化训练过程

五、案例分析

5.1 成功案例

📊 案例一:房价预测模型

背景介绍

使用机器学习方法预测房屋价格,包含数据预处理、特征工程、模型训练完整流程。

"""房价预测完整案例"""import pandas as pdimport numpy as npfrom sklearn.model_selection import train_test_split, GridSearchCVfrom sklearn.preprocessing import StandardScaler, OneHotEncoderfrom sklearn.compose import ColumnTransformerfrom sklearn.pipeline import Pipelinefrom sklearn.ensemble import RandomForestRegressor, GradientBoostingRegressorfrom sklearn.metrics import mean_squared_error, r2_scoreimport matplotlib.pyplot as pltclass HousePricePredictor:    """房价预测器"""    def __init__(self):        self.model = None        self.preprocessor = None    def prepare_data(self, data: pd.DataFrame, target_col: str):        """准备数据"""        X = data.drop(columns=[target_col])        y = data[target_col]        # 识别数值和类别特征        numeric_features = X.select_dtypes(include=[np.number]).columns.tolist()        categorical_features = X.select_dtypes(exclude=[np.number]).columns.tolist()        # 创建预处理器        self.preprocessor = ColumnTransformer(            transformers=[                ('num', StandardScaler(), numeric_features),                ('cat', OneHotEncoder(handle_unknown='ignore'), categorical_features)            ]        )        return train_test_split(X, y, test_size=0.2, random_state=42)    def train(self, X_train, y_train):        """训练模型"""        # 创建管道        self.model = Pipeline([            ('preprocessor'self.preprocessor),            ('regressor', GradientBoostingRegressor(                n_estimators=200,                learning_rate=0.1,                max_depth=5,                random_state=42            ))        ])        # 训练        self.model.fit(X_train, y_train)        return self    def evaluate(self, X_test, y_test):        """评估模型"""        y_pred = self.model.predict(X_test)        metrics = {            'RMSE': np.sqrt(mean_squared_error(y_test, y_pred)),            'MAE': mean_absolute_error(y_test, y_pred),            'R2': r2_score(y_test, y_pred)        }        return metrics, y_pred    def plot_predictions(self, y_test, y_pred):        """绘制预测结果"""        plt.figure(figsize=(106))        plt.scatter(y_test, y_pred, alpha=0.5)        plt.plot([y_test.min(), y_test.max()], [y_test.min(), y_test.max()], 'r--')        plt.xlabel('真实价格')        plt.ylabel('预测价格')        plt.title('房价预测结果')        plt.show()# 使用示例if __name__ == "__main__":    # 加载数据(示例)    # data = pd.read_csv('house_prices.csv')    # predictor = HousePricePredictor()    # X_train, X_test, y_train, y_test = predictor.prepare_data(data, 'price')    # predictor.train(X_train, y_train)    # metrics, y_pred = predictor.evaluate(X_test, y_test)    # print("评估指标:", metrics)    pass

5.2 失败教训

❌ 案例二:过拟合问题

问题分析

某模型在训练集表现优秀,但测试集效果很差:

① 训练集准确率99%

② 测试集准确率仅65%

③ 模型泛化能力差

解决方案

⚠️ 改进措施:

增加数据量

使用正则化

添加Dropout

早停法

六、常见问题解答

6.1 技术问题

Q1:如何选择合适的模型?

💡 建议:

Q2:如何处理数据不平衡
# 处理数据不平衡的方法from imblearn.over_sampling import SMOTEfrom imblearn.under_sampling import RandomUnderSamplerfrom sklearn.utils.class_weight import compute_class_weight# 方法1:过采样smote = SMOTE(random_state=42)X_resampled, y_resampled = smote.fit_resample(X, y)# 方法2:欠采样undersampler = RandomUnderSampler(random_state=42)X_resampled, y_resampled = undersampler.fit_resample(X, y)# 方法3:类别权重class_weights = compute_class_weight('balanced', classes=np.unique(y), y=y)

6.2 应用问题

Q3:如何提升模型性能?

💡 优化策略

① 数据增强
② 特征工程
③ 模型集成
④ 超参数调优

Q4:如何避免常见错误?

⚠️ 注意事项

  • 数据泄露问题
  • 评估方法正确
  • 超参数合理
  • 代码可复现

七、未来发展趋势

7.1 技术趋势

📈 发展方向

7.2 应用趋势

✅ 核心判断

未来3-5年,AI将在以下领域产生深远影响:

① 智能制造:质量检测、预测维护
② 医疗健康:辅助诊断、药物研发
③ 金融科技:风控、智能投顾
④ 自动驾驶:感知、决策、控制

7.3 职业发展

💡 职业建议

八、本章小结

8.1 核心要点回顾

✅ 本章核心内容:

① 概念理解:明确了Python AI基础:Matplotlib与Seaborn数据可视化的基本定义和核心概念

② 技术原理:深入探讨了算法原理和实现方法

③ 代码实现:提供了完整的Python代码示例

④ 实践应用:分享了实战案例和最佳实践

⑤ 问题解答:解答了常见的技术和应用问题

⑥ 趋势展望:分析了未来发展方向

8.2 学习建议

💡 给读者的建议:

① 理论与实践结合:在理解原理的基础上,动手实现

② 循序渐进:从简单模型开始,逐步深入

③ 持续学习:技术发展迅速,保持学习热情

④ 交流分享:加入社区,与同行交流

8.3 下一章预告

下一章将继续探讨相关主题,帮助读者建立完整的知识体系。建议读者在掌握本章内容后,继续深入学习后续章节。

九、课后练习

练习一:概念理解

请用自己的话解释Python AI基础:Matplotlib与Seaborn数据可视化的核心概念,并举例说明其应用场景。

练习二:代码实践

根据本章内容,尝试完成以下任务:

① 实现基础模型

② 训练并评估

③ 优化模型性能

练习三:案例分析

选择一个你熟悉的场景,分析如何应用本章所学知识解决实际问题。

十、参考资料

10.1 推荐阅读

📄 经典书籍:

《机器学习》- 周志华

《深度学习》- Ian Goodfellow

《Python机器学习》- Sebastian Raschka

📚 在线课程:

吴恩达机器学习课程

李沐动手学深度学习

Fast.ai课程

感谢你阅读完我的文章,顺便帮我点个三连

如果对你有用请给点个免费的关注,需要教程资料++关注即可直接免费领取~

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 03:48:54 HTTP/2.0 GET : https://f.mffb.com.cn/a/501701.html
  2. 运行时间 : 0.114013s [ 吞吐率:8.77req/s ] 内存消耗:4,657.38kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=b087d2b4a6cfde0f4e8ef2a4467a5e32
  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.000469s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000559s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000285s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000287s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000482s ]
  6. SELECT * FROM `set` [ RunTime:0.000199s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000578s ]
  8. SELECT * FROM `article` WHERE `id` = 501701 LIMIT 1 [ RunTime:0.016168s ]
  9. UPDATE `article` SET `lasttime` = 1783021734 WHERE `id` = 501701 [ RunTime:0.000683s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000293s ]
  11. SELECT * FROM `article` WHERE `id` < 501701 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000410s ]
  12. SELECT * FROM `article` WHERE `id` > 501701 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.013707s ]
  13. SELECT * FROM `article` WHERE `id` < 501701 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.002057s ]
  14. SELECT * FROM `article` WHERE `id` < 501701 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.007153s ]
  15. SELECT * FROM `article` WHERE `id` < 501701 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.002167s ]
0.115653s