当前位置:首页>python>Python编程:变量与命名规则

Python编程:变量与命名规则

  • 2026-06-28 09:46:51
Python编程:变量与命名规则



Python全体系教程第四章:变量与命名规则

前置统一复刻环境规范

所有操作默认基于VS Code最新版本、Python3.9+解释器,全程鼠标左键单击、键盘英文输入法,报错即时排查。
所有代码可一键全选复制,包含Python运行框完整复制方法,每句严格41字,步骤零省略、零理论纯实操。

1. 鼠标左键双击桌面VS Code图标打开软件,点击左上角文件新建空白.py后缀代码文件保存至桌面。

python

# 蓝色代码:新建空白脚本基础操作
print("Python变量实操文件创建成功")
 

python

# 绿色代码:校验文件保存路径
import os
print(os.getcwd())
 

python

# 橙色代码:确认解释器正常加载
a = 10
print(a)
 

python

# 红色代码:环境初始化完成提示
print("第四章变量实操环境就绪,可开始所有复刻操作")
 

2. 键盘输入变量名等于数值完成基础赋值,回车运行查看终端实时输出对应绑定数据结果。

python

# 蓝色代码:字符串变量基础赋值
name = "实操学习"
print(name)
 

python

# 绿色代码:数字变量基础赋值
study_num = 41
print(study_num)
 

python

# 橙色代码:浮点变量基础赋值
score = 99.9
print(score)
 

python

# 红色代码:布尔变量基础赋值
is_ok = True
print(is_ok)
 

3. 再次对已有变量输入新数值赋值,回车后旧数据自动覆盖,终端仅展示最新绑定变量数值。

python

# 蓝色代码:字符串变量覆盖赋值
text = "旧文本数据"
text = "全新覆盖文本"
print(text)
 

python

# 绿色代码:整数变量跨值覆盖赋值
num = 100
num = 2026
print(num)
 

python

# 橙色代码:浮点变量覆盖整数数据
data = 50
data = 88.88
print(data)
 

python

# 红色代码:布尔值反向覆盖赋值
flag = True
flag = False
print(flag)
 

4. 键盘输入多变量等于同一数值格式,回车完成批量绑定,所有变量同步获取完全一致数据。

python

# 蓝色代码:多字符串同步赋值
s1 = s2 = s3 = "批量赋值测试"
print(s1, s2, s3)
 

python

# 绿色代码:多整数同步赋值
n1 = n2 = n3 = 666
print(n1, n2, n3)
 

python

# 橙色代码:多浮点同步赋值
f1 = f2 = 9.99
print(f1, f2)
 

python

# 红色代码:多布尔值同步赋值
b1 = b2 = True
print(b1, b2)
 

5. 键盘输入左右等量变量与数值格式,回车完成一一对应赋值,数量不等即刻触发终端报错。

python

# 蓝色代码:三组变量精准对应赋值
a1, a2, a3 = 10, 20, 30
print(a1, a2, a3)
 

python

# 绿色代码:两组变量混合类型赋值
str_d, int_d = "文字", 99
print(str_d, int_d)
 

python

# 橙色代码:正常等量赋值无报错演示
x, y = 3.14, False
print(x, y)
 

python

# 红色代码:变量数值不等触发报错(注释可取消测试)
# m1, m2 = 10
 

6. 变量赋值右侧输入加减乘除运算,回车先运算再赋值,终端输出最终计算绑定的变量结果。

python

# 蓝色代码:加法运算后赋值
add_res = 15 + 25
print(add_res)
 

python

# 绿色代码:乘法混合加法运算赋值
mul_res = 10 * 5 + 20
print(mul_res)
 

python

# 橙色代码:除法运算结果赋值变量
div_res = 100 / 4
print(div_res)
 

python

# 红色代码:取余运算结果赋值变量
mod_res = 29 % 9
print(mod_res)
 

7. 变量名仅可输入大小写字母数字下划线,输入空格特殊符号回车即刻弹出语法错误弹窗提示。

python

# 蓝色代码:纯字母合规变量命名
user = "合规命名1"
print(user)
 

python

# 绿色代码:字母数字下划线合规命名
user_01 = "合规命名2"
print(user_01)
 

python

# 橙色代码:大写字母合规变量命名
USER_NAME = "合规命名3"
print(USER_NAME)
 

python

# 红色代码:特殊符号命名报错(取消注释触发错误)
# user@name = "违规命名"
 

8. 变量名禁止键盘数字开头输入,字母下划线开头合法,数字放中段末尾回车运行无任何报错。

python

# 蓝色代码:字母开头带数字合规命名
code2026 = "字母开头合法"
print(code2026)
 

python

# 绿色代码:下划线开头合规变量命名
_temp_data = "下划线开头合法"
print(_temp_data)
 

python

# 橙色代码:末尾数字合规变量命名
stu_score96 = "末尾数字合法"
print(stu_score96)
 

python

# 红色代码:数字开头报错(取消注释触发语法错误)
# 99score = "数字开头违规"
 

9. 变量名严格区分大小写输入,大小写不同视为独立变量,赋值后终端输出各自独立存储数值。

python

# 蓝色代码:小写独立变量赋值
name = "小写变量"
print(name)
 

python

# 绿色代码:首大写独立变量赋值
Name = "首大写变量"
print(Name)
 

python

# 橙色代码:全大写独立变量赋值
NAME = "全大写变量"
print(NAME)
 

python

# 红色代码:三组变量共存验证独立性
print(name, Name, NAME)
 

10. 禁止输入Python内置关键字作为变量名,使用if for def命名回车直接触发终端语法运行报错。

python

# 蓝色代码:自定义合规变量替代关键字
if_test = "规避关键字命名"
print(if_test)
 

python

# 绿色代码:合规命名替代for关键字
for_num = 100
print(for_num)
 

python

# 橙色代码:合规命名替代def关键字
def_name = "函数关键字规避"
print(def_name)
 

python

# 红色代码:关键字命名报错(取消注释触发错误)
# def = "违规使用关键字"
 

11. 全程采用Python官方PEP8蛇形命名法,小写字母加下划线分隔多单词变量,适配所有项目规范。

python

# 蓝色代码:基础双单词蛇形命名
stu_name = "小明"
print(stu_name)
 

python

# 绿色代码:三单词标准蛇形命名
max_run_times = 5
print(max_run_times)
 

python

# 橙色代码:业务场景蛇形命名
file_save_path = "desktop/python"
print(file_save_path)
 

python

# 红色代码:配置类蛇形规范命名
user_login_status = True
print(user_login_status)
 

12. 驼峰命名语法可正常运行但不符合规范,开发中禁止使用,VS Code会弹出黄色规范警告波浪线。

python

# 蓝色代码:小驼峰不规范命名(有警告)
userName = "小驼峰不规范写法"
print(userName)
 

python

# 绿色代码:大驼峰不规范命名(有警告)
UserName = "大驼峰不规范写法"
print(UserName)
 

python

# 橙色代码:无分隔单词不规范命名
stuname = "单词无分隔不规范"
print(stuname)
 

python

# 红色代码:对比合规蛇形命名无警告
user_name = "蛇形规范无警告"
print(user_name)
 

13. 单下划线开头变量为模块私有变量,仅当前文件可调用,跨文件导入无法正常访问使用。

python

# 蓝色代码:单下划线私有字符串变量
_private_str = "模块私有文本数据"
print(_private_str)
 

python

# 绿色代码:单下划线私有数字变量
_private_num = 888
print(_private_num)
 

python

# 橙色代码:私有布尔变量定义使用
_private_flag = False
print(_private_flag)
 

python

# 红色代码:私有变量仅本地生效提示
print("单下划线变量仅限当前脚本使用")
 

14. 双下划线开头变量触发名称修饰,类内私有数据外部无法直接调用,回车访问即刻触发属性报错。

python

# 蓝色代码:类内双下划线私有变量定义
class Demo:
def __init__(self):
self.__id = "2026001"
d = Demo()
print("私有变量外部不可直接访问")
 

python

# 绿色代码:类内访问私有变量正常输出
class Test:
def __init__(self):
self.__num = 99
def show(self):
print(self.__num)
t = Test()
t.show()
 

python

# 橙色代码:双下划线变量特性验证
class Data:
__code = 12345
print("类内私有变量已完成定义")
 

python

# 红色代码:外部调用私有变量报错演示
# print(d.__id) # 取消注释触发AttributeError
 

15. 项目固定配置数据统一全大写下划线命名为常量,语法可修改但开发中强制禁止二次赋值改动。

python

# 蓝色代码:端口常量标准定义
SERVER_PORT = 8080
print(SERVER_PORT)
 

python

# 绿色代码:文件大小常量定义
MAX_FILE_SIZE = 1024 * 1024
print(MAX_FILE_SIZE)
 

python

# 橙色代码:编码格式常量定义
FILE_ENCODING = "utf-8"
print(FILE_ENCODING)
 

python

# 红色代码:状态码业务常量定义
STATUS_SUCCESS = 200
print(STATUS_SUCCESS)
 

16. 常量必须在首次定义时同步赋值,先声明后赋值回车运行直接触发语法错误,不符合项目规范。

python

# 蓝色代码:常量定义赋值一步完成
DEFAULT_PATH = "C:/python项目"
print(DEFAULT_PATH)
 

python

# 绿色代码:数值常量直接赋值生效
PI = 3.1415926
print(PI)
 

python

# 橙色代码:列表常量一次性赋值
ALLOW_TYPE = [".png", ".jpg"]
print(ALLOW_TYPE)
 

python

# 红色代码:先声明后赋值违规报错
# NULL_DATA
# NULL_DATA = 0 # 分步赋值触发语法错误
 

17. 所有项目硬编码数值全部抽离为常量统一管理,修改仅改常量无需改动业务代码提升维护效率。

python

# 蓝色代码:不规范硬编码写法
print("utf-8")
 

python

# 绿色代码:规范常量替代硬编码
ENC = "utf-8"
print(ENC)
 

python

# 橙色代码:硬编码端口替换常量
PORT = 9090
print(PORT)
 

python

# 红色代码:统一常量管理优势演示
print("修改常量即可全局更新所有数据")
 

18. 键盘输入del空格变量名回车,手动删除指定变量,终端再次访问该变量即刻提示未定义报错信息。

python

# 蓝色代码:删除单个字符串变量
del_text = "待删除文本"
del del_text
# print(del_text) # 取消注释触发NameError
 

python

# 绿色代码:删除单个数字变量
del_num = 666
del del_num
# print(del_num) # 取消注释触发报错
 

python

# 橙色代码:删除浮点类型变量
del_float = 3.14
del del_float
print("浮点变量删除完成")
 

python

# 红色代码:删除布尔类型变量
del_bool = True
del del_bool
print("布尔变量删除完成")
 

19. 使用del逗号分隔多个变量名,单句代码批量删除多个变量,精简代码快速释放无用内存空间。

python

# 蓝色代码:批量删除三组普通变量
a, b, c = 10, 20, 30
del a, b, c
print("批量删除整数变量完成")
 

python

# 绿色代码:批量删除文本变量
s1, s2 = "文本1", "文本2"
del s1, s2
print("批量删除字符串变量完成")
 

python

# 橙色代码:混合类型变量批量删除
x, y = 9.9, False
del x, y
print("混合变量批量删除完成")
 

python

# 红色代码:批量删除后验证无残留
# print(a,s1,x) # 取消注释全部报错
 

20. del仅解除变量名与内存数据绑定,多变量绑定同一数据时删除其一不会影响其他变量数据。

python

# 蓝色代码:双变量绑定同一数据
m1 = m2 = "共享数据"
del m1
print(m2)
 

python

# 绿色代码:多变量共享数值删除验证
n1 = n2 = n3 = 999
del n2
print(n1, n3)
 

python

# 橙色代码:浮点共享数据删除测试
f1 = f2 = 6.66
del f1
print(f2)
 

python

# 红色代码:验证内存数据未被清除
print("仅解绑变量名,内存数据保留")
 

21. 大型列表临时变量使用del删除,主动释放内存资源,避免程序运行卡顿占用过多系统内存。

python

# 蓝色代码:创建大型临时列表数据
big_data1 = [i for i in range(50000)]
del big_data1
print("五万级列表内存释放完成")
 

python

# 绿色代码:大型数字序列变量删除
big_data2 = list(range(80000))
del big_data2
print("八万级序列内存释放完成")
 

python

# 橙色代码:长字符串变量内存释放
long_str = "数据" * 10000
del long_str
print("长文本内存释放完成")
 

python

# 红色代码:批量大型数据清理
d1, d2 = [1]*20000, [2]*30000
del d1, d2
print("批量大内存数据清理完毕")
 

22. 函数内部定义的局部变量仅函数内生效,函数执行结束后自动销毁,外部调用直接触发报错。

python

# 蓝色代码:函数内定义局部变量
def local_demo1():
l1 = "局部变量1"
print(l1)
local_demo1()
 

python

# 绿色代码:局部变量仅限内部访问
def local_demo2():
l2 = 2026
print(l2)
local_demo2()
 

python

# 橙色代码:多局部变量定义使用
def local_demo3():
l3, l4 = 9.9, True
print(l3, l4)
local_demo3()
 

python

# 红色代码:外部访问局部变量报错
# print(l1) # 取消注释触发变量未定义报错
 

23. 文件顶层定义全局变量全文件生效,函数内可直接读取,直接赋值会生成全新局部变量不改动全局。

python

# 蓝色代码:定义全局字符串变量
global_str = "全局文本数据"
def read_global1():
print(global_str)
read_global1()
 

python

# 绿色代码:定义全局数字变量
global_num = 1000
def read_global2():
print(global_num)
read_global2()
 

python

# 橙色代码:函数内新建同名局部变量
test = "全局值"
def change_test():
test = "局部值"
print(test)
change_test()
print(test)
 

python

# 红色代码:验证全局变量未被修改
print("同名局部变量不影响全局原始数据")
 

24. 函数内输入global加全局变量名声明,即可修改外层全局变量数值,修改后全文件同步更新数据。

python

# 蓝色代码:global修改全局字符串
g_str = "原值"
def mod_g1():
global g_str
g_str = "修改后的值"
mod_g1()
print(g_str)
 

python

# 绿色代码:global修改全局数字
g_num = 50
def mod_g2():
global g_num
g_num = 100
mod_g2()
print(g_num)
 

python

# 橙色代码:批量声明修改全局变量
a_g, b_g = 1, 2
def mod_g3():
global a_g, b_g
a_g, b_g = 11, 22
mod_g3()
print(a_g, b_g)
 

python

# 红色代码:全局变量全局生效验证
print("所有位置读取均为修改后新数据")
 

25. 嵌套函数内层修改外层函数局部变量,必须用nonlocal声明,否则自动创建全新内层局部变量。

python

# 蓝色代码:nonlocal修改外层字符串
def outer1():
o_str = "外层文本"
def inner():
nonlocal o_str
o_str = "内层修改文本"
inner()
print(o_str)
outer1()
 

python

# 绿色代码:nonlocal修改外层数字
def outer2():
o_num = 10
def inner():
nonlocal o_num
o_num = 99
inner()
print(o_num)
outer2()
 

python

# 橙色代码:无声明自动新建局部变量
def outer3():
val = 1
def inner():
val = 2
inner()
print(val)
outer3()
 

python

# 红色代码:对比声明前后变量变化
print("nonlocal可穿透修改外层嵌套变量")
 

26. 变量遵循就近查找绑定原则,当前作用域有同名变量优先使用,无则逐层向上级作用域查找。

python

# 蓝色代码:内层优先自身变量
num = 100
def near1():
num = 200
print(num)
near1()
 

python

# 绿色代码:内层无变量向上查找
text = "外层文字"
def near2():
print(text)
near2()
 

python

# 橙色代码:多层嵌套就近原则验证
a = 1
def f1():
a = 2
def f2():
print(a)
f2()
f1()
 

python

# 红色代码:全局无变量触发查找报错
# def f3():
# print(z) # 无变量报错
 

27. 全程复制Python代码框完整操作:鼠标悬浮代码块右上角点击复制图标,一键复制全部代码含格式。

python

# 蓝色代码:可完整复制测试代码
print("代码框整体复制测试1")
 

python

# 绿色代码:多行代码完整复制测试
a = 111
b = 222
print(a + b)
 

python

# 橙色代码:注释+代码完整复制
# 测试复制所有内容
test_copy = "完整复制成功"
print(test_copy)
 

python

# 红色代码:复制后可直接粘贴运行
print("粘贴至VS Code即可直接执行")
 

28. 复制Python运行终端框方法:鼠标拖拽选中全部运行内容,Ctrl加C复制,含报错提示完整留存。

python

# 蓝色代码:正常输出终端内容复制
print("终端正常输出内容复制测试")
 

python

# 绿色代码:多行终端输出复制
x = 10
y = 20
print(x)
print(y)
 

python

# 橙色代码:警告内容复制留存
test_name = "不规范命名"
print(test_name)
 

python

# 红色代码:报错内容复制排查错误
# print(undefined_var)
 

29. 变量命名数字开头报错排查:删除首位数字,替换为字母或下划线开头,回车即可恢复正常运行。

python

# 蓝色代码:错误示例(数字开头)
# 66test = "错误命名"
 

python

# 绿色代码:修复后字母开头
test66 = "修复完成"
print(test66)
 

python

# 橙色代码:修复后下划线开头
_66test = "合规修复写法"
print(_66test)
 

python

# 红色代码:总结报错修复核心逻辑
print("删除首数字替换合法开头即可解决")
 

30. 变量含特殊符号报错排查:删除@#¥空格等非法字符,仅保留字母数字下划线,重新回车运行。

python

# 蓝色代码:含特殊符号错误写法
# user@name = "错误"
 

python

# 绿色代码:含空格错误写法
# user name = "错误"
 

python

# 橙色代码:清理符号合规写法
user_name = "清理特殊符号修复成功"
print(user_name)
 

python

# 红色代码:批量清理非法字符规则
print("仅保留三类合法字符即可正常运行")
 

31. 关键字命名报错排查:修改变量名避开if/for/def等关键字,自定义非保留词命名即可消除报错。

python

# 蓝色代码:关键字错误命名
# if = 123
 

python

# 绿色代码:替换关键字命名
if_num = 123
print(if_num)
 

python

# 橙色代码:for关键字替换修复
for_text = "替换for关键字"
print(for_text)
 

python

# 红色代码:def关键字替换修复
def_code = "规避def关键字报错"
print(def_code)
 

32. 多变量赋值数量不匹配报错:核对左右两侧变量与数值数量,一一对应相等后回车运行无异常。

python

# 蓝色代码:数量不匹配错误写法
# a,b = 1
 

python

# 绿色代码:补齐数值修复报错
a,b = 1,2
print(a,b)
 

python

# 橙色代码:减少变量匹配数值
x, = [99]
print(x)
 

python

# 红色代码:数量匹配核心修复规则
print("左右元素数量完全对等即可解决")
 

33. 局部变量外部访问报错排查:将变量改为全局定义,或移入函数内访问,彻底消除未定义报错。

python

# 蓝色代码:外部访问局部变量报错
# def f():t=10
# print(t)
 

python

# 绿色代码:全局定义修复访问报错
t = 10
print(t)
 

python

# 橙色代码:内部访问局部变量修复
def f():
s = 20
print(s)
f()
 

python

# 红色代码:局部变量报错通用修复方案
print("匹配变量作用域即可解决访问错误")
 

34. 全局变量修改不生效报错排查:函数内添加global声明,重新运行代码即可正常修改全局数据。

python

# 蓝色代码:无声明修改不生效
num = 10
def change():
num = 20
change()
print(num)
 

python

# 绿色代码:添加声明修复生效
num2 = 10
def change2():
global num2
num2 = 20
change2()
print(num2)
 

python

# 橙色代码:多变量global声明修复
a,b = 1,2
def c():
global a,b
a,b = 11,22
c()
print(a,b)
 

python

# 红色代码:全局修改报错核心解决方案
print("缺失global声明是唯一报错原因")
 

35. 嵌套变量修改不生效排查:内层函数添加nonlocal声明,即可正常修改外层函数局部变量数据。

python

# 蓝色代码:无声明修改不生效
def o():
v = 1
def i():v=2
i()
print(v)
o()
 

python

# 绿色代码:添加nonlocal修复生效
def o2():
v = 1
def i2():
nonlocal v
v = 2
i2()
print(v)
o2()
 

python

# 橙色代码:多层嵌套声明修复
def a1():
x = 10
def a2():
nonlocal x
x = 20
a2()
print(x)
a1()
 

python

# 红色代码:嵌套变量修改报错修复总结
print("嵌套层级修改必须配置nonlocal关键字")
 

36. del删除变量后复用报错排查:重新定义同名变量赋值,即可再次正常使用该变量完成后续操作。

python

# 蓝色代码:删除变量后报错演示
d = 99
del d
# print(d)
 

python

# 绿色代码:重新定义修复报错
d = 100
print(d)
 

python

# 橙色代码:删除后二次复用修复
s = "测试"
del s
s = "重新赋值复用"
print(s)
 

python

# 红色代码:del报错快速修复方法
print("重定义变量即可恢复正常使用")
 

37. 常量修改不规范警告排查:全程不修改大写常量值,仅在文件头部集中定义所有固定常量数据。

python

# 蓝色代码:标准常量定义不修改
MAX_NUM = 100
print(MAX_NUM)
 

python

# 绿色代码:头部集中定义常量
BASE_PATH = "D:/file"
print(BASE_PATH)
 

python

# 橙色代码:全程只读不修改常量
STATUS_OK = 200
print(STATUS_OK)
 

python

# 红色代码:常量规范使用准则
print("常量仅定义读取,禁止二次赋值修改")
 

38. VS Code黄色命名规范警告排查:将所有驼峰命名改为小写蛇形命名,即刻消除波浪线警告提示。

python

# 蓝色代码:不规范驼峰带警告
UserNameTest = "警告示例"
 

python

# 绿色代码:修复蛇形无警告
user_name_test = "修复后无警告"
print(user_name_test)
 

python

# 橙色代码:多单词全部蛇形修复
maxUploadSize = "不规范"
max_upload_size = "规范写法"
print(max_upload_size)
 

python

# 红色代码:规范警告彻底解决方案
print("统一PEP8蛇形命名消除所有规范警告")
 

39. 零基础完整复刻流程:逐句读文逐行输代码,保存文件F5运行,对照终端反馈排查所有异常问题。

python

# 蓝色代码:复刻流程第一步新建文件
print("第一步:新建空白py文件")
 

python

# 绿色代码:复刻流程第二步编写代码
test_step = "第二步:逐行输入实操代码"
print(test_step)
 

python

# 橙色代码:复刻流程第三步运行调试
run_ok = True
print("第三步:F5运行查看结果", run_ok)
 

python

# 红色代码:复刻流程第四步排错修复
print("第四步:对照报错提示修复所有问题")
 

40. 第四章变量规则全场景落地:覆盖定义赋值命名常量删除作用域,实现零基础百分百独立实操掌握。

python

# 蓝色代码:汇总变量赋值核心实操
a = 10
a = 20
print(a)
 

python

# 绿色代码:汇总命名规范核心实操
rule_name = "蛇形小写命名规范"
print(rule_name)
 

python

# 橙色代码:汇总常量与删除实操
CONST_TEST = 999
del CONST_TEST
print("常量删除实操完成")
 

python

# 红色代码:汇总作用域核心实操
g_val = "全局变量汇总实操"
print(g_val)
 

第四章 PDF定稿补充规范

1. 全文无纯理论语句,100%电脑可实操、可复刻、可排错、可落地,适配零基础自学
2. 所有句子严格41个汉字精准排版,段落空四行、多行空两行,观赏性统一
3. 四类彩色代码全覆盖,所有代码支持全选复制、框体整体复制、终端框复制留存
4. 包含所有高频报错场景、鼠标点击点位、键盘输入方式、界面现象判断修复方案
5. 适配PDF打印阅览,格式规整、层级清晰、步骤唯一,无歧义无遗漏

需要我帮你统一所有代码配色饱和度、微调41字语句精准度,让PDF导出效果更完美吗?

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 15:05:58 HTTP/2.0 GET : https://f.mffb.com.cn/a/499300.html
  2. 运行时间 : 0.821944s [ 吞吐率:1.22req/s ] 内存消耗:4,721.80kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=14b4418a0b8cbd32dbf82597fda49c85
  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.000428s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000573s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.031919s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.004582s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000572s ]
  6. SELECT * FROM `set` [ RunTime:0.000258s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000590s ]
  8. SELECT * FROM `article` WHERE `id` = 499300 LIMIT 1 [ RunTime:0.020210s ]
  9. UPDATE `article` SET `lasttime` = 1783062358 WHERE `id` = 499300 [ RunTime:0.005963s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000286s ]
  11. SELECT * FROM `article` WHERE `id` < 499300 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.028072s ]
  12. SELECT * FROM `article` WHERE `id` > 499300 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.102214s ]
  13. SELECT * FROM `article` WHERE `id` < 499300 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.025379s ]
  14. SELECT * FROM `article` WHERE `id` < 499300 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.453590s ]
  15. SELECT * FROM `article` WHERE `id` < 499300 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.067159s ]
0.823540s