当前位置:首页>python>2026马年Python3从零到英雄:万字终极入门指南

2026马年Python3从零到英雄:万字终极入门指南

  • 2026-03-09 12:31:43
2026马年Python3从零到英雄:万字终极入门指南

2026年,Python依旧稳坐编程语言排行榜前列,成为人工智能、数据分析、Web开发等领域的首选语言。在这个丙午马年,让我们以“马”到成功的决心,系统掌握Python3,开启编程之旅!

为什么选择Python3?

Python以其简洁的语法、强大的生态和广泛的应用场景,吸引了全球数百万开发者。无论是Google的深度学习框架TensorFlow,还是Instagram的后端服务,Python都扮演着关键角色。学习Python,就是为未来十年的技术发展做好准备。

第一章:Python3快速启程

1.1 Python3 环境搭建(2026最新版)

Python安装从未如此简单:

# 官方推荐:访问 python.org 下载最新版本# 或者使用包管理器安装# Mac用户brew install python@3.12# Linux用户sudo apt updatesudo apt install python3.12# Windows用户# 从官网下载安装包,记得勾选"Add Python to PATH"

验证安装:打开终端输入 python3 --version或 python --version,看到版本号即成功。

专业提示:新手建议安装Python 3.8+版本,这是目前最稳定且兼容性最佳的版本。

1.2 VS Code:你的Python开发神器

Visual Studio Code已成为Python开发的标配工具:

  1. 安装VS Code:从官网免费下载

  2. 必备扩展

    • Python(微软官方)

    • Python Extended

    • Pylance(智能提示)

    • Python Docstring Generator

  3. 配置Python解释器:按Ctrl+Shift+P,输入"Python: Select Interpreter",选择你安装的Python版本

  4. 运行代码:右上角的绿色三角按钮,或按F5

1.3 AI编程助手:你的智能副驾

2026年,AI编程助手已成为开发者标配。以下工具可极大提升学习效率:

  • GitHub Copilot:自动补全代码,解释复杂概念

  • Cursor:智能IDE,支持自然语言编程

  • Claude Code:专注代码生成的AI助手

  • 本地部署的代码大模型:保护隐私,快速响应

学习建议:初期先用AI助手生成示例代码,然后逐行理解,而不是直接复制使用。

第二章:Python3基础语法精要

2.1 第一个Python程序

# hello_world.pyprint("你好,2026!欢迎来到Python世界!")print("这是丙午马年,让我们一马当先,代码奔腾!")# 运行:python hello_world.py# 输出:# 你好,2026!欢迎来到Python世界!# 这是丙午马年,让我们一马当先,代码奔腾!

2.2 Python解释器:交互式学习利器

Python解释器有两种使用方式:

# 1. 交互模式(边写边执行)$ python3>>> 1 + 12>>> print("Hello")Hello>>> exit()  # 退出# 2. 脚本模式(编写完整程序)$ python3 script.py

新手技巧:使用交互模式快速测试代码片段,验证想法。

2.3 Python注释:代码的说明书

良好的注释习惯是专业程序员的标志:

# 单行注释:解释下面代码的作用price = 100  # 商品价格(单位:元)"""多行注释(文档字符串)用于函数、类的详细说明这是商品类,管理商品相关信息"""def calculate_total(price, quantity):    """    计算商品总价    参数:    price -- 单价    quantity -- 数量    返回:    总价格    """    return price * quantity

第三章:Python核心数据类型与操作

3.1 六大基本数据类型

# 1. 数字(Number)num_int = 2026       # 整数num_float = 3.14     # 浮点数num_complex = 3 + 4j # 复数# 2. 字符串(String)name = "Python"wish = "祝您马年大吉,代码无bug!"# 3. 列表(List)- 可变序列languages = ["Python", "Java", "JavaScript"]languages.append("Go")  # 添加元素# 4. 元组(Tuple)- 不可变序列coordinates = (39.9042116.4074)  # 北京坐标colors = ("red""green""blue")# 5. 字典(Dictionary)- 键值对student = {"name""张三""age"20"major""计算机"}student["grade"] = "A"  # 添加键值对# 6. 集合(Set)- 无序不重复prime_numbers = {23571113}even_numbers = {246810}

3.2 数据类型转换:Python的智能“翻译官”

# 隐式转换(自动)result = 5 + 3.14  # 5自动转为5.0print(type(result))  # <class 'float'># 显式转换(手动)# 字符串转数字age = int("25")price = float("199.99")# 数字转字符串score_str = str(95.5)# 列表、元组、集合间的转换nums_list = [1, 2, 3]nums_tuple = tuple(nums_list)  # 列表转元组nums_set = set(nums_list)      # 列表转集合(去重)

注意:转换可能失败,要处理异常:

try:    num = int("abc")except ValueError:    num = 0  # 转换失败时的默认值

3.3 字符串:文本处理的瑞士军刀

text = "2026年,Python依然强大"# 常用操作print(len(text))           # 字符串长度print(text[0:4])          # 切片:2026print("Python" in text)    # 成员检查:Trueprint(text.upper())        # 转大写print(text.replace("强大""无所不能"))  # 替换# 字符串格式化(2026推荐)name = "小明"age = 25# f-string(最简洁)message = f"{name}今年{age}岁,学习Python{age-20}年了"# format方法message2 = "{}今年{}岁".format(name, age)

3.4 列表与元组:顺序存储的利器

# 列表操作大全fruits = ["apple""banana""cherry"]# 增fruits.append("orange")        # 末尾添加fruits.insert(1"grape")      # 指定位置插入fruits.extend(["mango""kiwi"])  # 合并列表# 删fruits.pop()            # 删除末尾fruits.remove("banana"# 删除指定元素del fruits[0]          # 删除索引位置# 改fruits[0] = "peach"# 查print("apple" in fruits)  # 是否存在print(fruits.index("cherry"))  # 索引位置print(fruits.count("apple"))   # 出现次数# 排序numbers = [3141592]numbers.sort()  # 升序numbers.sort(reverse=True)  # 降序

列表 vs 元组

  • 列表可变,用方括号[],适合存储会变化的数据

  • 元组不可变,用圆括号(),适合存储常量或配置

3.5 字典:键值对的魔法

# 创建字典student = {    "name""李华",    "age"22,    "courses": ["Python""数学""英语"],    "graduated"False}# 访问print(student["name"])  # 直接访问print(student.get("grade""A"))  # 安全访问,不存在返回默认值# 遍历for key, value in student.items():    print(f"{key}{value}")# 字典推导式(高级技巧)squares = {x: x**2 for x in range(16)}# 结果:{1: 1, 2: 4, 3: 9, 4: 16, 5: 25}

3.6 集合:去重与集合运算

# 创建集合colors = {"red""green""blue"}# 集合运算A = {12345}B = {45678}print(A | B)  # 并集:{12345678}print(A & B)  # 交集:{45}print(A - B)  # 差集:{123}print(A ^ B)  # 对称差:{123678}

第四章:控制程序流程

4.1 条件控制:if-elif-else

# 基本if语句age = 20if age >= 18:    print("成年")else:    print("未成年")# 多条件判断score = 85if score >= 90:    grade = "A"elif score >= 80:    grade = "B"elif score >= 70:    grade = "C"else:    grade = "D"# 简洁的条件表达式status = "通过" if score >= 60 else "不通过"

4.2 循环:让代码“跑”起来

# 1. for循环:遍历序列# 遍历列表fruits = ["apple""banana""cherry"]for fruit in fruits:    print(f"我喜欢吃{fruit}")# 遍历数字范围for i in range(16):  # 1到5    print(f"这是第{i}次循环")# 2. while循环:条件循环count = 0while count < 5:    print(f"计数:{count}")    count += 1# 3. 循环控制for i in range(10):    if i == 3:        continue  # 跳过本次循环    if i == 7:        break     # 终止循环    print(i)

4.3 推导式:Python的语法糖

# 列表推导式squares = [x**2 for x in range(16)]  # [1, 4, 9, 16, 25]# 带条件的列表推导式even_squares = [x**2 for x in range(111) if x % 2 == 0]  # [4, 16, 36, 64, 100]# 字典推导式square_dict = {x: x**2 for x in range(16)}# 集合推导式unique_lengths = {len(word) for word in ["apple""banana""cherry"]}

第五章:函数与模块化编程

5.1 函数:代码的积木

# 定义函数def greet(name, time_of_day="早上"):    """打招呼的函数    参数:    name -- 姓名    time_of_day -- 时间,默认"早上"    返回:    问候语    """    return f"{time_of_day}好,{name}!"# 调用函数message = greet("张三")print(message)  # 早上好,张三!# 使用关键字参数message2 = greet(name="李四", time_of_day="下午")# 可变参数def calculate_average(*numbers):    """计算任意数量数字的平均值"""    if not numbers:        return 0    return sum(numbers) / len(numbers)print(calculate_average(12345))  # 3.0

5.2 lambda函数:匿名函数

# 基本用法square = lambda x: x ** 2print(square(5))  # 25# 配合内置函数使用numbers = [12345]squared = list(map(lambda x: x**2, numbers))  # [1, 4, 9, 16, 25]even_numbers = list(filter(lambda x: x % 2 == 0, numbers))  # [2, 4]# 排序时使用students = [("张三"85), ("李四"92), ("王五"78)]students.sort(key=lambda x: x[1], reverse=True)  # 按分数降序排序

5.3 装饰器:增强函数的魔法

import timefrom functools import wraps# 计时装饰器def timer(func):    @wraps(func)    def wrapper(*args, **kwargs):        start_time = time.time()        result = func(*args, **kwargs)        end_time = time.time()        print(f"{func.__name__} 执行时间: {end_time - start_time:.2f}秒")        return result    return wrapper# 使用装饰器@timerdef slow_function():    """模拟耗时操作"""    time.sleep(2)    return "完成"# 调用result = slow_function()  # 自动计时

5.4 模块:代码的组织方式

# 导入整个模块import mathprint(math.sqrt(16))  # 4.0# 导入特定功能from datetime import datetimenow = datetime.now()# 给模块起别名import numpy as npimport pandas as pd# 创建自己的模块# 在my_module.py中:"""def say_hello(name):    return f"Hello, {name}!"def add(a, b):    return a + b"""# 在其他文件中使用:# from my_module import say_hello, add

5.5 __name__的特殊含义

# 在my_module.py中def hello():    return "Hello from module"# 当模块被直接运行时if __name__ == "__main__":    print("这个模块被直接运行")    print(hello())# 当模块被导入时else:    print("这个模块被导入")

第六章:文件与异常处理

6.1 文件操作:读写数据

# 读取文件try:    withopen("data.txt""r", encoding="utf-8"asfile:        content = file.read()  # 读取全部        # 或者逐行读取        for line in file:            print(line.strip())except FileNotFoundError:    print("文件不存在")# 写入文件data = "这是要写入的内容\n2026年学习Python"withopen("output.txt""w", encoding="utf-8"asfile:    file.write(data)# 追加内容with open("output.txt""a", encoding="utf-8"as file:    file.write("\n这是追加的内容")

6.2 OS模块:操作系统交互

import os# 文件和目录操作print(os.getcwd())  # 当前工作目录os.makedirs("new_folder", exist_ok=True)  # 创建目录print(os.listdir("."))  # 列出当前目录内容os.rename("old.txt""new.txt")  # 重命名# 路径操作import os.pathfile_path = os.path.join("folder""subfolder""file.txt")print(os.path.abspath("."))  # 绝对路径print(os.path.exists("file.txt"))  # 检查文件是否存在

6.3 异常处理:让程序更健壮

try:    num = int(input("请输入数字: "))    result = 10 / num    print(f"结果是: {result}")except ValueError:    print("错误:请输入有效的数字!")except ZeroDivisionError:    print("错误:不能除以0!")except Exception as e:    print(f"发生未知错误: {e}")else:    print("计算成功完成!")finally:    print("程序执行完毕。")# 自定义异常class AgeError(Exception):    """年龄异常"""    passdef check_age(age):    if age < 0 or age > 150:        raise AgeError("年龄必须在0-150之间")    return True

第七章:面向对象编程

7.1 类与对象

class Student:    """学生类"""    # 类属性(所有实例共享)    school = "清华大学"    def __init__(self, name, age, major):        """初始化方法"""        self.name = name   # 实例属性        self.age = age        self.major = major        self.__secret = "这是私有属性"  # 私有属性    def introduce(self):        """实例方法"""        return f"我叫{self.name}{self.age}岁,专业是{self.major}"    @classmethod    def change_school(cls, new_school):        """类方法"""        cls.school = new_school    @staticmethod    def is_adult(age):        """静态方法"""        return age >= 18    @property    def info(self):        """属性装饰器"""        return f"{self.name} - {self.major}"    def __str__(self):        """字符串表示"""        return f"Student(name={self.name}, age={self.age})"# 使用类student1 = Student("张三"20"计算机科学")print(student1.introduce())  # 我叫张三,20岁,专业是计算机科学print(student1.info)  # 张三 - 计算机科学print(student1)  # Student(name=张三, age=20)

7.2 继承与多态

class Animal:    def __init__(self, name):        self.name = name    def speak(self):        raise NotImplementedError("子类必须实现此方法")class Dog(Animal):    def speak(self):        return f"{self.name}说:汪汪!"class Cat(Animal):    def speak(self):        return f"{self.name}说:喵喵!"# 多态animals = [Dog("旺财"), Cat("咪咪")]for animal in animals:    print(animal.speak())

第八章:高级特性与最佳实践

8.1 迭代器与生成器

# 迭代器class CountDown:    """倒计时迭代器"""    def __init__(self, start):        self.current = start    def __iter__(self):        return self    def __next__(self):        if self.current <= 0:            raise StopIteration        num = self.current        self.current -= 1        return num# 使用迭代器for num in CountDown(5):    print(num)  # 5, 4, 3, 2, 1# 生成器(更简洁)def count_down(n):    """生成器函数"""    while n > 0:        yield n        n -= 1for num in count_down(5):    print(num)

8.2 with语句:上下文管理

# 自动管理资源with open("data.txt""r"as file:    data = file.read()# 文件会自动关闭# 自定义上下文管理器class Timer:    def __enter__(self):        import time        self.start = time.time()        return self    def __exit__(self, exc_type, exc_val, exc_tb):        import time        self.end = time.time()        print(f"耗时: {self.end - self.start:.2f}秒")with Timer():    # 执行需要计时的代码    import time    time.sleep(1)

8.3 虚拟环境:项目隔离

# 创建虚拟环境python3 -m venv myenv# 激活虚拟环境# Windowsmyenv\Scripts\activate# Mac/Linuxsource myenv/bin/activate# 在虚拟环境中安装包pip install requests numpy pandas# 导出依赖pip freeze > requirements.txt# 从requirements.txt安装pip install -r requirements.txt# 退出虚拟环境deactivate

8.4 类型注解:提高代码可读性

from typing import ListDictOptionalUniondef process_data(    data: List[Dict[strUnion[intstr]]],    threshold: Optional[int] = None) -> Dict[strfloat]:    """处理数据,返回统计结果    参数:    data -- 要处理的数据列表    threshold -- 可选阈值    返回:    统计结果字典    """    if threshold is None:        threshold = 0    # 处理逻辑    result = {"total"len(data), "processed"0}    return result# 使用mypy进行类型检查# pip install mypy# mypy your_script.py

第九章:实战项目:学生管理系统

import jsonimport osfrom typing import DictListOptionalfrom dataclasses import dataclass, asdictfrom datetime import datetime@dataclassclass Student:    """学生数据类"""    idstr    name: str    age: int    grade: str    courses: List[str]    def to_dict(self) -> Dict:        """转换为字典"""        return asdict(self)    @classmethod    def from_dict(cls, data: Dict) -> 'Student':        """从字典创建实例"""        return cls(**data)class StudentManager:    """学生管理系统"""    def __init__(self, filename: str = "students.json"):        self.filename = filename        self.students: Dict[str, Student] = {}        self.load()    def add_student(self, student: Student) -> bool:        """添加学生"""        if student.id in self.students:            return False        self.students[student.id] = student        self.save()        return True    def get_student(self, student_id: str) -> Optional[Student]:        """获取学生信息"""        return self.students.get(student_id)    def update_student(self, student: Student) -> bool:        """更新学生信息"""        if student.id not in self.students:            return False        self.students[student.id] = student        self.save()        return True    def delete_student(self, student_id: str) -> bool:        """删除学生"""        if student_id not in self.students:            return False        del self.students[student_id]        self.save()        return True    def list_students(self) -> List[Student]:        """列出所有学生"""        return list(self.students.values())    def search_students(self, keyword: str) -> List[Student]:        """搜索学生"""        result = []        keyword = keyword.lower()        for student in self.students.values():            if (keyword in student.name.lower() or                 keyword in student.grade.lower() or                any(keyword in course.lower() for course in student.courses)):                result.append(student)        return result    def save(self) -> None:        """保存到文件"""        data = {            "students": {sid: student.to_dict() for sid, student in self.students.items()},            "updated_at": datetime.now().isoformat()        }        with open(self.filename, "w", encoding="utf-8"as f:            json.dump(data, f, ensure_ascii=False, indent=2)    def load(self) -> None:        """从文件加载"""        if not os.path.exists(self.filename):            return        try:            with open(self.filename, "r", encoding="utf-8"as f:                data = json.load(f)                self.students = {                    sid: Student.from_dict(student_data)                    for sid, student_data in data.get("students", {}).items()                }        except (json.JSONDecodeError, FileNotFoundError):            self.students = {}def main():    """主程序"""    manager = StudentManager()    while True:        print("\n=== 学生管理系统 ===")        print("1. 添加学生")        print("2. 查看学生")        print("3. 更新学生")        print("4. 删除学生")        print("5. 搜索学生")        print("6. 列出所有学生")        print("7. 退出")        choice = input("\n请选择操作 (1-7): ").strip()        if choice == "1":            # 添加学生            student_id = input("学号: ").strip()            name = input("姓名: ").strip()            age = int(input("年龄: ").strip())            grade = input("班级: ").strip()            courses = input("课程(用逗号分隔): ").strip().split(",")            student = Student(                id=student_id,                name=name,                age=age,                grade=grade,                courses=[c.strip() for c in courses]            )            if manager.add_student(student):                print("学生添加成功!")            else:                print("学号已存在!")        elif choice == "2":            # 查看学生            student_id = input("请输入学号: ").strip()            student = manager.get_student(student_id)            if student:                print(f"\n学号: {student.id}")                print(f"姓名: {student.name}")                print(f"年龄: {student.age}")                print(f"班级: {student.grade}")                print(f"课程: {', '.join(student.courses)}")            else:                print("学生不存在!")        elif choice == "6":            # 列出所有学生            students = manager.list_students()            if students:                print(f"\n共有 {len(students)} 名学生:")                for student in students:                    print(f"{student.id}{student.name} - {student.grade}")            else:                print("暂无学生信息")        elif choice == "7":            print("感谢使用,再见!")            break        else:            print("无效选择,请重新输入!")if __name__ == "__main__":    main()

第十章:Python标准库精华

Python标准库功能强大,以下是一些常用模块:

# 1. collections - 扩展的数据结构from collections import Counter, defaultdict, deque, namedtuple# 计数器counts = Counter("abracadabra")print(counts)  # Counter({'a': 5, 'b': 2, 'r': 2, 'c': 1, 'd': 1})# 默认字典grades = defaultdict(list)grades["数学"].append(95)grades["英语"].append(88)# 命名元组Point = namedtuple("Point", ["x""y"])p = Point(1020)print(p.x, p.y)  # 10 20# 2. itertools - 迭代工具import itertools# 无限迭代器for i in itertools.count(102):  # 从10开始,步长为2    if i > 20:        break    print(i)  # 10, 12, 14, 16, 18, 20# 排列组合letters = ['A''B''C']print(list(itertools.permutations(letters, 2)))  # 排列print(list(itertools.combinations(letters, 2)))  # 组合# 3. re - 正则表达式import retext = "我的电话是13800138000,邮箱是test@example.com"phone_pattern = r'1[3-9]\d{9}'email_pattern = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'phones = re.findall(phone_pattern, text)emails = re.findall(email_pattern, text)print(f"电话: {phones}")  # ['13800138000']print(f"邮箱: {emails}")  # ['test@example.com']# 4. datetime - 日期时间from datetime import datetime, timedelta, datenow = datetime.now()print(f"当前时间: {now.strftime('%Y-%m-%d %H:%M:%S')}")tomorrow = now + timedelta(days=1)print(f"明天: {tomorrow.date()}")# 5. random - 随机数import randomprint(random.random())  # 0-1随机小数print(random.randint(1100))  # 1-100随机整数print(random.choice(["石头""剪刀""布"]))  # 随机选择random.shuffle([12345])  # 随机打乱

学习路线与资源推荐

学习路线图

  1. 第1-2周:基础语法、数据类型、控制流程

  2. 第3-4周:函数、模块、文件操作

  3. 第5-6周:面向对象、异常处理

  4. 第7-8周:标准库、虚拟环境、项目实战

  5. 持续学习:框架学习(Django/Flask)、数据分析(Pandas)、人工智能(PyTorch)

学习资源

  • 官方文档:docs.python.org(最权威)

  • 交互式学习:Codecademy、LeetCode、HackerRank

  • 视频教程:B站Python相关课程

  • 开源项目:GitHub Trending Python项目

  • 社区:Stack Overflow、知乎、Python中文社区

2026年Python趋势

  1. AI与机器学习:PyTorch、TensorFlow

  2. 数据分析:Pandas、NumPy、Matplotlib

  3. Web开发:FastAPI、Django、Flask

  4. 自动化:Selenium、Airflow

  5. 科学计算:SciPy、SymPy


Python是一门既适合初学者入门,又能支持复杂项目开发的多功能语言。在这个丙午马年,掌握Python将为你的职业发展和技术能力带来质的飞跃。

记住编程的核心原则:

  • 保持好奇:不断探索新技术

  • 动手实践:代码是写出来的,不是看出来的

  • 持续学习:技术更新快,学习不能停

  • 参与社区:分享与交流是进步的阶梯

无论你是编程新手,还是想提升技能的开发者,Python都是一个绝佳的选择。从今天开始,一行行代码,一步步成长,你会发现自己正用代码改变世界。


分享给你的学习伙伴,一起进步!

关注我们,点赞收藏,随时复习!

#Python教程#编程入门#Python基础#2026学习计划#马年学编程#Python实战#编程思维#技术成长

往期推荐:

Python数据类型转换详解:隐式转换与显式转换的奇妙之旅

Python基础教程 | Python新手必备!3小时轻松入门Python3基础语法,写出你的第一个程序

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-28 04:37:42 HTTP/2.0 GET : https://f.mffb.com.cn/a/478786.html
  2. 运行时间 : 0.224969s [ 吞吐率:4.45req/s ] 内存消耗:4,647.53kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=5a3914f533f1c1d4b7b413bad353ad66
  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.001050s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001530s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000730s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000674s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.002162s ]
  6. SELECT * FROM `set` [ RunTime:0.000695s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001480s ]
  8. SELECT * FROM `article` WHERE `id` = 478786 LIMIT 1 [ RunTime:0.008121s ]
  9. UPDATE `article` SET `lasttime` = 1774643862 WHERE `id` = 478786 [ RunTime:0.034710s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.069851s ]
  11. SELECT * FROM `article` WHERE `id` < 478786 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001429s ]
  12. SELECT * FROM `article` WHERE `id` > 478786 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.001315s ]
  13. SELECT * FROM `article` WHERE `id` < 478786 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001813s ]
  14. SELECT * FROM `article` WHERE `id` < 478786 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.002087s ]
  15. SELECT * FROM `article` WHERE `id` < 478786 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.005048s ]
0.229226s