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

bellcode / lesson3-5-1_DIY1

  • 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 53d34c08 authored 10 months ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 3305bc69
Hide whitespace changes
Inline Side-by-side
Showing with 9 additions and 23 deletions
  • a.py
a.py
View file @ 53d34c08
import turtle a="abc"
pen=turtle.Pen() b="123"
screen=turtle.Screen() c=input("名字:")
pen.fillcolor("red") d=input("密码:")
pen.penup() if a==c and b==d:
pen.goto(0,-100) print("正常")
pen.write("你好呀",font=("Times",20,"normal")) else:
pen.goto(0,0) print("错误")
pen.pendown() \ No newline at end of file
pen.begin_fill()
a=screen.textinput("提示","你想要多大?")
a=int(a)
screen.bgcolor("green")
pen.left(45)
pen.forward(a*2)
pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(a*2)
pen.end_fill()
pen.hideturtle()
turtle.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