Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson10-4

  • This project
    • Loading...
  • Sign in
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 5a44f60b authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 62bf6239
Hide whitespace changes
Inline Side-by-side
Showing with 87 additions and 9 deletions
  • quiz.py
quiz.py
View file @ 5a44f60b
# 勇于挑战的创造师,下面的代码犯了两类典型错误,请你把bug揪出来吧。
area = ['盘丝洞','白骨洞','大雁塔']
monster = {'盘丝洞':'蜘蛛精','白骨洞': '白骨精','大雁塔':'花妖'}
# 打印出大雁塔
print(area[3])
# 向字典中添加 '地府':'僵尸'
monster.append('地府','僵尸')
print(monster)
\ No newline at end of file
import turtle as t
t.speed(0.1)
t.penup()
t.goto(-135,-145)
t.pendown()
t.begin_fill()
t.color("orange","orange")
for i in range(2):
t.forward(200)
t.left(90)
t.forward(100)
t.left(90)
t.end_fill()
t.begin_fill()
t.color("blue","blue")
t.penup()
t.left(90)
t.forward(100)
t.pendown()
t.right(45)
t.forward(142)
t.right(90)
t.forward(142)
t.right(135)
t.forward(200)
t.end_fill()
t.penup()
t.goto(-100,-95)
t.pendown()
t.right(90)
t.begin_fill()
t.color("black","white")
for i in range(4):
t.forward(30)
t.right(90)
t.end_fill()
t.forward(15)
t.right(90)
t.forward(30)
t.left(90)
t.forward(15)
t.left(90)
t.forward(15)
t.left(90)
t.forward(30)
t.penup()
t.goto(-25,-145)
t.pendown()
t.begin_fill()
t.color("black","white")
t.left(180)
t.forward(70)
t.right(90)
t.forward(30)
t.right(90)
t.forward(70)
t.right(90)
t.forward(30)
t.end_fill()
t.penup()
t.goto(-5,-115)
t.pendown()
t.begin_fill()
t.color("black","yellow")
t.circle(3)
t.end_fill()
t.penup()
t.goto(154,198)
t.pendown()
t.begin_fill()
t.color("red","red")
t.circle(80)
t.end_fill()
t.penup()
t.goto(114,158)
t.pendown()
t.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment