Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cb2bd5a1
authored
4 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b929c43b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
0 deletions
5.py
area.py
5.py
0 → 100644
View file @
cb2bd5a1
# 悟空想海龟作图画出弹簧隧道,但是出现了bug,运行不了,请你帮助他,修改bug
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
pen
.
speed
(
1000
)
pen
.
hideturtle
()
screen
.
bgcolor
(
'black'
)
i
=
0
while
i
<
180
:
pen
.
speed
(
1000
)
pen
.
pencolor
(
'pink'
)
pen
.
penup
()
pen
.
goto
(
0
,
0
)
pen
.
forward
(
200
)
pen
.
pendown
()
pen
.
circle
(
100
)
pen
.
left
(
2
)
i
+=
1
turtle
.
done
()
This diff is collapsed.
Click to expand it.
area.py
View file @
cb2bd5a1
...
@@ -11,6 +11,12 @@ print('第6个孩子宙斯逃过一劫。)
...
@@ -11,6 +11,12 @@ print('第6个孩子宙斯逃过一劫。)
# 假期到了,诺依想出去玩,但不知道有没有飞机直达那里,
# 假期到了,诺依想出去玩,但不知道有没有飞机直达那里,
# 悟空做了个小程序帮助诺依,然而代码出现了3处错误。
# 悟空做了个小程序帮助诺依,然而代码出现了3处错误。
# 请你找出来,并运行~
# 请你找出来,并运行~
...
@@ -24,6 +30,16 @@ else:
...
@@ -24,6 +30,16 @@ else:
#第二次展示
#第二次展示
# 勇于挑战的创造师,下面的代码犯了三类典型错误,请你把bug揪出来吧。
# 勇于挑战的创造师,下面的代码犯了三类典型错误,请你把bug揪出来吧。
score = {'
悟空语文
':95,'
悟空数学
':88,'
悟空英语
':85,'
悟空美术
':97}
score = {'
悟空语文
':95,'
悟空数学
':88,'
悟空英语
':85,'
悟空美术
':97}
...
@@ -52,6 +68,14 @@ elif 1<=stonenum <= 3:
...
@@ -52,6 +68,14 @@ elif 1<=stonenum <= 3:
else:
else:
print('
没办法了,只能尝试呼叫惊奇队长
')
print('
没办法了,只能尝试呼叫惊奇队长
')
#第二个项目的拓展:变量
#第二个项目的拓展:变量
# 期末考试结束了,悟空在教务系统查到了自己的几门必修课分数,他想通过python计算自己的平均分。
# 期末考试结束了,悟空在教务系统查到了自己的几门必修课分数,他想通过python计算自己的平均分。
# 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。
# 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment