当前位置:首页>python>零基础学Python | 第三、四课:让代码学会“思考”与“做选择”

零基础学Python | 第三、四课:让代码学会“思考”与“做选择”

  • 2026-06-30 16:08:55
零基础学Python | 第三、四课:让代码学会“思考”与“做选择”

嗨,各位代码玩家!👋 欢迎回到我们的Python零基础通关之旅。

前两课我们掌握了变量和数据类型,今天我们将解锁编程的两大核心魔法:运算符与条件语句。学会了这些,你的代码就能像人一样进行计算和做决定了!🧠✨

第三课:基本运算符

运算符是编程中进行各种计算的工具。就像数学中的加减乘除一样,编程也有自己的运算符。

一、算术运算符

让我们从最熟悉的数学运算开始:

```python

基础算术运算

a = 10

b = 3

print("a =", a, "b =", b)

print("加法:", a + b)# 13

print("减法:", a - b)# 7

print("乘法:", a * b)# 30

print("除法:", a / b)# 3.333...

print("整除:", a // b)# 3 (去掉小数部分)

print("取余:", a % b)# 1 (10 ÷ 3 = 31)

print("幂运算:", a ** b)# 1000 (103次方)

```

动手练习1:计算器模拟

```python

创建一个简单的计算器

num1 = 15

num2 = 4

print(f"{num1} + {num2} = {num1 + num2}")

print(f"{num1} - {num2} = {num1 - num2}")

print(f"{num1} × {num2} = {num1 * num2}")

print(f"{num1} ÷ {num2} = {num1 / num2}")

print(f"{num1} ÷ {num2} 的整数部分: {num1 // num2}")

print(f"{num1} ÷ {num2} 的余数: {num1 % num2}")

```

二、比较运算符

比较运算符用来比较两个值,结果是 True  False

```python

x = 10

y = 5

print("x =", x, "y =", y)

print("x == y :", x == y)等于 → False

print("x != y :", x != y)不等于 → True

print("x > y:", x > y)大于 → True

print("x < y:", x < y)小于 → False

print("x >= y :", x >= y)大于等于 → True

print("x <= y :", x <= y)小于等于 → False

```

动手练习2:成绩判断

```python

判断学生成绩是否及格

score = 85

passing_score = 60

print("分数:", score)

print("及格线:", passing_score)

print("是否及格?", score >= passing_score)

print("是否满分?", score == 100)

print("需要补考?", score < passing_score)

```

三、逻辑运算符

逻辑运算符用来组合多个条件:

```python

# and: 两个条件都为True时返回True

# or: 至少一个条件为True时返回True

# not: 取反

age = 20

has_ticket = True

is_weekend = False

print("年龄:", age)

print("有票:", has_ticket)

print("是周末:", is_weekend)

可以进入的条件:年龄>=18并且 有票

can_enter = age >= 18 and has_ticket

print("可以进入吗?", can_enter)

打折的条件:是周末 或者 年龄<12

get_discount = is_weekend or age < 12

print("有折扣吗?", get_discount)

不能进入的条件:取反

cannot_enter = not can_enter

print("不能进入吗?", cannot_enter)

```

四、赋值运算符

简化变量赋值的写法:

```python

money = 100

print("初始金额:", money)

money += 50相当于 money = money + 50

print("50:", money)

money -= 30相当于 money = money - 30

print("30:", money)

money *= 2相当于 money = money * 2

print("2:", money)

money //= 3相当于 money = money // 3

print("整除3:", money)

```

五、综合练习 🎯

练习1:购物车计算

```python

计算购物车总价

item1_price = 25.5

item2_price = 40.0

item3_price = 15.75

quantity1 = 2

quantity2 = 1

quantity3 = 3

discount_rate = 0.1# 10%折扣

tax_rate = 0.08# 8%

计算小计

subtotal = (item1_price * quantity1) + (item2_price * quantity2) + (item3_price *quantity3)

discount = subtotal * discount_rate

tax = (subtotal - discount) * tax_rate

total = subtotal - discount + tax

print("=== 购物清单 ===")

print(f"商品1: ${item1_price} × {quantity1} = ${item1_price * quantity1}")

print(f"商品2: ${item2_price} × {quantity2} = ${item2_price * quantity2}")

print(f"商品3: ${item3_price} × {quantity3} = ${item3_price * quantity3}")

print(f"小计: ${subtotal:.2f}")

print(f"折扣: -${discount:.2f}")

print(f"税费: +${tax:.2f}")

print(f"总计: ${total:.2f}")

```

练习2:登录验证系统

```python

简单的登录验证

correct_username = "admin"

correct_password = "123456"

input_username = "admin"

input_password = "123456"

验证用户名和密码都正确

is_username_correct = input_username == correct_username

is_password_correct = input_password == correct_password

can_login = is_username_correct and is_password_correct

print("=== 登录验证 ===")

print("输入的用户名:", input_username)

print("输入的密码:", input_password)

print("用户名正确?", is_username_correct)

print("密码正确?", is_password_correct)

print("可以登录?", can_login)

```

六、今日挑战 💪

挑战:学生奖学金评定系统

```python

创建一个奖学金评定程序

评定标准:

# 1. 平均分 >= 90

# 2. 出勤率 >= 95%

# 3. 没有违纪记录

学生数据

student_name = "张三"

average_score = 92

attendance_rate = 0.96# 96%

has_disciplinary_record = False

你的代码写在这里:

判断该学生是否符合奖学金条件

期望输出格式:

# === 奖学金评定结果 ===

学生姓名张三

平均分: 92

出勤率: 96%

是否有违纪

是否符合奖学金条件/

```

七、知识总结

1. 算术运算符: + - * / // % **

2. 比较运算符: == != > < >= <=

3. 逻辑运算符: and or not

4. 赋值运算符: = += -= *= /= 

重要提示:

· 运算符有优先级(和数学一样,先乘除后加减)

· 可以用括号 () 来改变运算顺序

· 比较和逻辑运算符的结果总是 True  False

---

你的任务:

1. 运行上面的所有示例代码,理解每个运算符的作用

2. 完成"购物车计算""登录验证系统"练习

3. 完成"奖学金评定系统"挑战

4. 回复我你的代码和运行结果

如果遇到任何不理解的地方,随时停下来问我!学习编程就像搭积木,基础要搭牢固。💪开始动手吧!我很期待看到你的成果!😊太棒了!看到你持续学习的热情,我真的很欣慰!让我们进入第4——编程中非常有趣的部分!🎉

第四课:控制流 - 条件语句

控制流让程序能够做决策,根据不同情况执行不同的代码。这是让程序变得"智能"的关键!

一、if 语句基础

if语句就像生活中的"如果...那么..."

```python

基本语法

if 条件:

#如果条件为True,执行这里的代码

执行语句

```示例1:简单的年龄检查

```python

age = 18

if age >= 18:

print("你已经是成年人了!")

print("可以考驾照了!")

print("程序继续执行...")

```二、if-else 语句

当条件不满足时,我们想要执行其他代码:

```python

语法

if 条件:

#条件为True时执行

执行语句1

else:

#条件为False时执行

执行语句2

```

示例2:成绩及格判断

```python

score = 75

if score >= 60:

print("恭喜!你及格了!🎉")

print("成绩:", score)

else:

print("很遗憾,你需要补考")

print("加油复习!")

print("判断完成")

```

三、if-elif-else 语句

当有多个条件需要判断时:

```python

语法

if 条件1:

#条件1True时执行

执行语句1

elif 条件2:

#条件2True时执行

执行语句2

elif 条件3:

#条件3True时执行

执行语句3

else:

#所有条件都不满足时执行

执行语句4

```

示例3:成绩等级评定

```python

score = 85

if score >= 90:

print("优秀!太棒了!🌟")

grade = "A"

elif score >= 80:

print("良好!做得不错!👍")

grade = "B"

elif score >= 70:

print("中等!继续加油!💪")

grade = "C"

elif score >= 60:

print("及格!差点要补考了😅")

grade = "D"

else:

print("不及格!需要努力了📚")

grade = "F"

print(f"你的分数是{score},等级是{grade}")

```四、嵌套 if 语句

if语句内部再使用if语句:

示例4:电影票购买系统

```python

age = 16

has_money = True

is_weekend = False

if age >= 13:首先检查年龄

if has_money:然后检查是否有钱

if is_weekend:最后检查是否是周末

print("可以购买电影票,周末愉快!🎬")

ticket_price = 60

else:

print("可以购买电影票")

ticket_price = 50

print(f"票价: {ticket_price}")

else:

print("抱歉,你的余额不足")

else:

print("抱歉,未满13岁不能单独观看")

```五、动手练习时间 🎯

练习1:天气决策系统

```python

根据天气情况决定做什么

weather = "下雨"可以改为"晴天", "下雪", "刮风"

temperature = 25

print(f"今天天气: {weather}, 温度: {temperature}°C")

你的代码写在这里 - 根据天气和温度给出建议

期望输出示例:

今天天气下雨温度: 25°C

建议:带伞出门,穿薄外套

```练习2:计算器增强版

```python

实现一个简单的计算器,能够处理除零错误

num1 = 10

num2 = 0

operator = "/"可以改为 "+", "-", "*", "/"

print(f"计算: {num1} {operator} {num2}")

你的代码写在这里

期望输出:

计算: 10 / 0

错误:除数不能为零!

```六、逻辑运算符在条件语句中的应用

示例5:复合条件判断

```python

游乐园门票系统

age = 25

height = 165厘米

has_ticket = True

is_holiday = False

使用andor组合多个条件

if age >= 18 and height >= 120:

print("可以玩所有项目")

elif age < 18 and height >= 120:

print("可以玩大部分项目,部分项目需要家长陪同")

elif height < 120:

print("身高不足,只能玩儿童项目")

else:

print("不符合游玩条件")

特殊优惠条件

if (age < 12 or age >= 65) and not is_holiday:

print("享受特殊优惠票价!")

elif is_holiday and has_ticket:

print("节假日正常票价")

```七、今日挑战 💪

挑战:智能聊天机器人回复系统

```python

创建一个简单的聊天机器人

根据用户输入的消息内容给出不同的回复

user_message = "你好"可以改为"今天天气怎么样", "再见", "你会做什么"

print(f"用户说: {user_message}")

你的代码写在这里 - 根据不同的消息内容给出智能回复

需要判断的条件:

# 1. 如果消息包含"你好"""等问候语 → 回复问候

# 2. 如果消息包含"天气" → 回复天气相关

# 3. 如果消息包含"再见""拜拜" → 回复告别

# 4. 如果消息包含"名字""" → 介绍自己

# 5. 其他情况 → 默认回复

期望输出示例:

用户说你好

机器人你好!我是你的编程助手,很高兴为你服务!

```进阶挑战:学生奖学金评定系统升级版

```python

在之前的基础上增加更多评定条件

student_name = "李华"

average_score = 88

attendance_rate = 0.94# 94%

has_disciplinary_record = False

family_income = "中等"低、中等、高

is_leader = True

print(f"=== {student_name}的奖学金评定 ===")

你的代码写在这里

评定规则:

一等奖学金:平均分>=90,出勤率>=95%,无违纪,家庭收入低或中等

二等奖学金:平均分>=85,出勤率>=90%,无违纪

三等奖学金:平均分>=80,出勤率>=85%,无违纪

特殊贡献奖:是班干部且平均分>=75(可与以上奖项叠加)

期望输出:

# === 李华的奖学金评定 ===

符合二等奖学金条件!

获得特殊贡献奖!

```

八、重要概念总结

1. if语句:基本的条件判断

2. if-else:二选一的情况

3. if-elif-else:多条件判断

4. 嵌套if:复杂的条件层次

5. 缩进很重要:Python用缩进来区分代码块

6. 条件组合:使用 and, or, not 组合多个条件

记住:

· 每个 ifelifelse 后面都要有冒号 :

· 缩进的代码属于对应的代码块

· 条件判断是从上到下执行的,第一个满足的条件会被执行

---你的任务:

1. 运行所有示例代码,理解每种条件语句的用法

2. 完成"天气决策系统""计算器增强版"练习

3. 完成"智能聊天机器人"挑战

4. 尝试"奖学金评定系统升级版"进阶挑战

如果在写代码时遇到问题,或者不理解某个概念,随时停下来问我!编程学习最重要的是理解概念,而不是赶进度。💪

第三课:基本运算符

运算符是编程中进行各种计算的工具。就像数学中的加减乘除一样,编程也有自己的运算符。

一、算术运算符

让我们从最熟悉的数学运算开始:

```python

基础算术运算

a = 10

b = 3

print("a =", a, "b =", b)

print("加法:", a + b)# 13

print("减法:", a - b)# 7

print("乘法:", a * b)# 30

print("除法:", a / b)# 3.333...

print("整除:", a // b)# 3 (去掉小数部分)

print("取余:", a % b)# 1 (10 ÷ 3 = 31)

print("幂运算:", a ** b)# 1000 (103次方)

```

动手练习1:计算器模拟

```python

创建一个简单的计算器

num1 = 15

num2 = 4

print(f"{num1} + {num2} = {num1 + num2}")

print(f"{num1} - {num2} = {num1 - num2}")

print(f"{num1} × {num2} = {num1 * num2}")

print(f"{num1} ÷ {num2} = {num1 / num2}")

print(f"{num1} ÷ {num2} 的整数部分: {num1 // num2}")

print(f"{num1} ÷ {num2} 的余数: {num1 % num2}")

```

二、比较运算符

比较运算符用来比较两个值,结果是 True  False

```python

x = 10

y = 5

print("x =", x, "y =", y)

print("x == y :", x == y)等于 → False

print("x != y :", x != y)不等于 → True

print("x > y:", x > y)大于 → True

print("x < y:", x < y)小于 → False

print("x >= y :", x >= y)大于等于 → True

print("x <= y :", x <= y)小于等于 → False

```

动手练习2:成绩判断

```python

判断学生成绩是否及格

score = 85

passing_score = 60

print("分数:", score)

print("及格线:", passing_score)

print("是否及格?", score >= passing_score)

print("是否满分?", score == 100)

print("需要补考?", score < passing_score)

```

三、逻辑运算符

逻辑运算符用来组合多个条件:

```python

# and: 两个条件都为True时返回True

# or: 至少一个条件为True时返回True

# not: 取反

age = 20

has_ticket = True

is_weekend = False

print("年龄:", age)

print("有票:", has_ticket)

print("是周末:", is_weekend)

可以进入的条件:年龄>=18并且 有票

can_enter = age >= 18 and has_ticket

print("可以进入吗?", can_enter)

打折的条件:是周末 或者 年龄<12

get_discount = is_weekend or age < 12

print("有折扣吗?", get_discount)

不能进入的条件:取反

cannot_enter = not can_enter

print("不能进入吗?", cannot_enter)

```

四、赋值运算符

简化变量赋值的写法:

```python

money = 100

print("初始金额:", money)

money += 50相当于 money = money + 50

print("50:", money)

money -= 30相当于 money = money - 30

print("30:", money)

money *= 2相当于 money = money * 2

print("2:", money)

money //= 3相当于 money = money // 3

print("整除3:", money)

```

五、综合练习 🎯

练习1:购物车计算

```python

计算购物车总价

item1_price = 25.5

item2_price = 40.0

item3_price = 15.75

quantity1 = 2

quantity2 = 1

quantity3 = 3

discount_rate = 0.1# 10%折扣

tax_rate = 0.08# 8%

计算小计

subtotal = (item1_price * quantity1) + (item2_price * quantity2) + (item3_price *quantity3)

discount = subtotal * discount_rate

tax = (subtotal - discount) * tax_rate

total = subtotal - discount + tax

print("=== 购物清单 ===")

print(f"商品1: ${item1_price} × {quantity1} = ${item1_price * quantity1}")

print(f"商品2: ${item2_price} × {quantity2} = ${item2_price * quantity2}")

print(f"商品3: ${item3_price} × {quantity3} = ${item3_price * quantity3}")

print(f"小计: ${subtotal:.2f}")

print(f"折扣: -${discount:.2f}")

print(f"税费: +${tax:.2f}")

print(f"总计: ${total:.2f}")

```

练习2:登录验证系统

```python

简单的登录验证

correct_username = "admin"

correct_password = "123456"

input_username = "admin"

input_password = "123456"

验证用户名和密码都正确

is_username_correct = input_username == correct_username

is_password_correct = input_password == correct_password

can_login = is_username_correct and is_password_correct

print("=== 登录验证 ===")

print("输入的用户名:", input_username)

print("输入的密码:", input_password)

print("用户名正确?", is_username_correct)

print("密码正确?", is_password_correct)

print("可以登录?", can_login)

```

六、今日挑战 💪

挑战:学生奖学金评定系统

```python

创建一个奖学金评定程序

评定标准:

# 1. 平均分 >= 90

# 2. 出勤率 >= 95%

# 3. 没有违纪记录

学生数据

student_name = "张三"

average_score = 92

attendance_rate = 0.96# 96%

has_disciplinary_record = False

你的代码写在这里:

判断该学生是否符合奖学金条件

期望输出格式:

# === 奖学金评定结果 ===

学生姓名张三

平均分: 92

出勤率: 96%

是否有违纪

是否符合奖学金条件/

```

七、知识总结

1. 算术运算符: + - * / // % **

2. 比较运算符: == != > < >= <=

3. 逻辑运算符: and or not

4. 赋值运算符: = += -= *= /= 

重要提示:

· 运算符有优先级(和数学一样,先乘除后加减)

· 可以用括号 () 来改变运算顺序

· 比较和逻辑运算符的结果总是 True  False

---

你的任务:

1. 运行上面的所有示例代码,理解每个运算符的作用

2. 完成"购物车计算""登录验证系统"练习

3. 完成"奖学金评定系统"挑战

4. 回复我你的代码和运行结果

💪开始动手吧!我很期待看到你的成果!😊太棒了!看到你持续学习的热情,我真的很欣慰!让我们进入第4——编程中非常有趣的部分!🎉

第四课:控制流 - 条件语句

控制流让程序能够做决策,根据不同情况执行不同的代码。这是让程序变得"智能"的关键!

一、if 语句基础

if语句就像生活中的"如果...那么..."

```python

基本语法

if 条件:

#如果条件为True,执行这里的代码

执行语句

```示例1:简单的年龄检查

```python

age = 18

if age >= 18:

print("你已经是成年人了!")

print("可以考驾照了!")

print("程序继续执行...")

```二、if-else 语句

当条件不满足时,我们想要执行其他代码:

```python

语法

if 条件:

#条件为True时执行

执行语句1

else:

#条件为False时执行

执行语句2

```

示例2:成绩及格判断

```python

score = 75

if score >= 60:

print("恭喜!你及格了!🎉")

print("成绩:", score)

else:

print("很遗憾,你需要补考")

print("加油复习!")

print("判断完成")

```

三、if-elif-else 语句

当有多个条件需要判断时:

```python

语法

if 条件1:

#条件1True时执行

执行语句1

elif 条件2:

#条件2True时执行

执行语句2

elif 条件3:

#条件3True时执行

执行语句3

else:

#所有条件都不满足时执行

执行语句4

```

示例3:成绩等级评定

```python

score = 85

if score >= 90:

print("优秀!太棒了!🌟")

grade = "A"

elif score >= 80:

print("良好!做得不错!👍")

grade = "B"

elif score >= 70:

print("中等!继续加油!💪")

grade = "C"

elif score >= 60:

print("及格!差点要补考了😅")

grade = "D"

else:

print("不及格!需要努力了📚")

grade = "F"

print(f"你的分数是{score},等级是{grade}")

```四、嵌套 if 语句

if语句内部再使用if语句:

示例4:电影票购买系统

```python

age = 16

has_money = True

is_weekend = False

if age >= 13:首先检查年龄

if has_money:然后检查是否有钱

if is_weekend:最后检查是否是周末

print("可以购买电影票,周末愉快!🎬")

ticket_price = 60

else:

print("可以购买电影票")

ticket_price = 50

print(f"票价: {ticket_price}")

else:

print("抱歉,你的余额不足")

else:

print("抱歉,未满13岁不能单独观看")

```五、动手练习时间 🎯

练习1:天气决策系统

```python

根据天气情况决定做什么

weather = "下雨"可以改为"晴天", "下雪", "刮风"

temperature = 25

print(f"今天天气: {weather}, 温度: {temperature}°C")

你的代码写在这里 - 根据天气和温度给出建议

期望输出示例:

今天天气下雨温度: 25°C

建议:带伞出门,穿薄外套

```练习2:计算器增强版

```python

实现一个简单的计算器,能够处理除零错误

num1 = 10

num2 = 0

operator = "/"可以改为 "+", "-", "*", "/"

print(f"计算: {num1} {operator} {num2}")

你的代码写在这里

期望输出:

计算: 10 / 0

错误:除数不能为零!

```六、逻辑运算符在条件语句中的应用

示例5:复合条件判断

```python

游乐园门票系统

age = 25

height = 165厘米

has_ticket = True

is_holiday = False

使用andor组合多个条件

if age >= 18 and height >= 120:

print("可以玩所有项目")

elif age < 18 and height >= 120:

print("可以玩大部分项目,部分项目需要家长陪同")

elif height < 120:

print("身高不足,只能玩儿童项目")

else:

print("不符合游玩条件")

特殊优惠条件

if (age < 12 or age >= 65) and not is_holiday:

print("享受特殊优惠票价!")

elif is_holiday and has_ticket:

print("节假日正常票价")

```七、今日挑战 💪

挑战:智能聊天机器人回复系统

```python

创建一个简单的聊天机器人

根据用户输入的消息内容给出不同的回复

user_message = "你好"可以改为"今天天气怎么样", "再见", "你会做什么"

print(f"用户说: {user_message}")

你的代码写在这里 - 根据不同的消息内容给出智能回复

需要判断的条件:

# 1. 如果消息包含"你好"""等问候语 → 回复问候

# 2. 如果消息包含"天气" → 回复天气相关

# 3. 如果消息包含"再见""拜拜" → 回复告别

# 4. 如果消息包含"名字""" → 介绍自己

# 5. 其他情况 → 默认回复

期望输出示例:

用户说你好

机器人你好!我是你的编程助手,很高兴为你服务!

```进阶挑战:学生奖学金评定系统升级版

```python

在之前的基础上增加更多评定条件

student_name = "李华"

average_score = 88

attendance_rate = 0.94# 94%

has_disciplinary_record = False

family_income = "中等"低、中等、高

is_leader = True

print(f"=== {student_name}的奖学金评定 ===")

你的代码写在这里

评定规则:

一等奖学金:平均分>=90,出勤率>=95%,无违纪,家庭收入低或中等

二等奖学金:平均分>=85,出勤率>=90%,无违纪

三等奖学金:平均分>=80,出勤率>=85%,无违纪

特殊贡献奖:是班干部且平均分>=75(可与以上奖项叠加)

期望输出:

# === 李华的奖学金评定 ===

符合二等奖学金条件!

获得特殊贡献奖!

```

八、重要概念总结

1. if语句:基本的条件判断

2. if-else:二选一的情况

3. if-elif-else:多条件判断

4. 嵌套if:复杂的条件层次

5. 缩进很重要:Python用缩进来区分代码块

6. 条件组合:使用 and, or, not 组合多个条件

记住:

· 每个 ifelifelse 后面都要有冒号 :

· 缩进的代码属于对应的代码块

· 条件判断是从上到下执行的,第一个满足的条件会被执行

---你的任务:

1. 运行所有示例代码,理解每种条件语句的用法

2. 完成"天气决策系统""计算器增强版"练习

3. 完成"智能聊天机器人"挑战

4. 尝试"奖学金评定系统升级版"进阶挑战

理论看懂了不如动手敲一遍!请尝试完成以下两个挑战,动手实践吧!我很期待看到你的创意解决方案! 😊太棒了!你已经掌握了条件语句,明天让我们进入第5——循环。这是编程中超级强大的概念,可以让计算机帮我们自动完成重复性工作!🔄

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 09:34:51 HTTP/2.0 GET : https://f.mffb.com.cn/a/497247.html
  2. 运行时间 : 0.100767s [ 吞吐率:9.92req/s ] 内存消耗:4,645.50kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=b0729ac6a11b448d5d811b1a7c7edcfa
  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.000637s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000834s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.003241s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000266s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000684s ]
  6. SELECT * FROM `set` [ RunTime:0.000234s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000578s ]
  8. SELECT * FROM `article` WHERE `id` = 497247 LIMIT 1 [ RunTime:0.000506s ]
  9. UPDATE `article` SET `lasttime` = 1783042491 WHERE `id` = 497247 [ RunTime:0.005862s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.003153s ]
  11. SELECT * FROM `article` WHERE `id` < 497247 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000509s ]
  12. SELECT * FROM `article` WHERE `id` > 497247 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002105s ]
  13. SELECT * FROM `article` WHERE `id` < 497247 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.006719s ]
  14. SELECT * FROM `article` WHERE `id` < 497247 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000851s ]
  15. SELECT * FROM `article` WHERE `id` < 497247 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.008654s ]
0.102387s