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

bellcode / lesson3-1-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 fa2fb164 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 2483684b
Show whitespace changes
Inline Side-by-side
Showing with 7 additions and 56 deletions
  • .py
  • 1.py
  • diy1.py
.py
View file @ fa2fb164
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("小可","太帅了对吧")
len=int(len)
pen=turtle.Pen()
pen.write("\我有意见.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
1.py
View file @ fa2fb164
import turtle
pen=turtle.Pen
pen.pencolor("red")
pen.pensize(5)
pen.left(45)
pen.forward(200)
pen.circle(100,180)
pen.right(90)
pen.forward(100)
pen.hideturtle()
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py
View file @ fa2fb164
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("\SB.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
usernme="python"
userpassword="123456"
1=input("请输入账号:")
2=input("请输入密码:")
if 1==usernme and 2==userpassword
print("登录成功")
\ 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