remove useless

This commit is contained in:
2024-12-22 23:56:48 +08:00
parent 59d11a811b
commit 1e57b3a109
19 changed files with 0 additions and 144 deletions

View File

@@ -1,5 +0,0 @@
# 筛选并尝试找出规律
打开:[lc.xuyue.cc](lc.xuyue.cc)
账号 stu 密码 123456

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

View File

@@ -1,58 +0,0 @@
# 导学案
现在需要记录每次的调试过程,分别需要记录:
1. 初始值
2. 循环的条件
3. 条件的值
4. 计数器每次加的值
5. 循环的次数
每一项所对应的代码,如图:
![0](image.png)
每次填写后,刷新网页再次填写。
打开:[https://lc.xuyue.cc/public-forms/do0zqi0xlpe](https://lc.xuyue.cc/public-forms/do0zqi0xlpe)
## 第一步 两人一组,一人负责调试,一人负责记录
![6](image-6.png)
## 第二步 修改代码一次,调试并记录一次
你可以选择以下其中一种,修改代码,调试并记录。
1. 修改初始值,举个例子,从初始值 0 改为 2
![3](image-3.png)
2. 修改循环的条件,举个例子,从小于改为小于等于
![7](image-7.png)
3. 修改条件的数值,举个例子,从 5 改为 10
![8](image-8.png)
4. 修改计数器每次加的数,举个例子,从 1 改为 2
![9](image-9.png)
## 第三步 在自测猫中修改 5 次代码,记录 5 次
打开:[https://code.xuyue.cc/?query=5](https://code.xuyue.cc/?query=5)
每次修改【初始值、循环的条件、条件的值、计数器每次加的值】,运行查看循环次数,并记录。
比如:
![12](image-12.png)
每组至少记录 5 份。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -1,64 +0,0 @@
# 可视化执行流程
如图演示,我们可以精确控制代码的执行流程。
![0](PixPin_2024-12-19_19-54-46.gif)
打开 [pythontutor.com](https://pythontutor.com/),由于网站都是英文的,所以接下来我会一步步的截图,请按照顺序执行。
## 第一步 选择编程语言
![1](image-1.png)
## 第二步 在输入框中粘贴代码
![2](image-2.png)
```py
i=0
while i<5:
i=i+1
print(i)
```
## 第三步 点击【可视化执行】按钮
![5](image-5.png)
## 第四步 进入调试页面
![4](image-4.png)
① 点击下一步
② 绿色箭头表示【当前正在】执行的语句,红色箭头表示【下一步要】执行的语句
③ 显示变量的值
④ 输出的内容
## 第五步 调试代码
![1](PixPin_2024-12-19_19-45-49.gif)
5.1 不断点击【Next】按钮
5.2 ① 注意【绿色】和【红色】箭头的走动
5.3 ② 变量的值随着代码的执行而发生变化
5.4 ③ 输出内容的变化
**注意观察箭头的行走和值的变化**
## 第六步 更改代码再次调试
点击【Edit this code】按钮可以修改代码
![2](PixPin_2024-12-19_19-58-47.gif)
遇到弹框,直接点按钮
![10](image-10.png)
## [完成任务](/basic/tasks/pythontutor/)