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

bellcode / lesson2-2_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 502946c5 authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 612702af
Hide whitespace changes
Inline Side-by-side
Showing with 19 additions and 8 deletions
  • dk.py
  • jfhdsuf.py/kd.py
  • mpm.py
dk.py 0 → 100644
View file @ 502946c5
import turtle
screen = turtle.Screen()
)screen.textinput("提示","你想要的爱心大小是":
turtle.done()
This diff is collapsed. Click to expand it.
jfhdsuf.py/kd.py 0 → 100644
View file @ 502946c5
username = "python"
userpassword = "123456"
name = input("请输入账号:")
password = input("请输入密码:")
if (name==username)and (password ==userpassword):
print("登陆成功")
\ No newline at end of file
This diff is collapsed. Click to expand it.
mpm.py
View file @ 502946c5
import turtle import turtle
#p = turtle.Pen() screen = turtle.Screen()
#p.write("诺伊,你好\n我会用编辑器打字了",font=("times",30,"normal")) len = screen.textinput("提示","你想要的爱心大小是:")
#turtle.done() size = int(len)
p1 = turtle.Pen() p1 = turtle.Pen()
p1.pensize(5) p1.pensize(5)
p1.pencolor("red") p1.pencolor("green")
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(size*2)
p1.circle(50,180) p1.circle(size,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(size,180)
p1.forward(100) p1.forward(size*2)
turtle.done() turtle.done()
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