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

Administrator / lesson7_6

  • 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 ad27f730 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 25f5dbc4
Show whitespace changes
Inline Side-by-side
Showing with 3331 additions and 16 deletions
  • diy4.py
diy4.py
View file @ ad27f730
import random import turtle
pen = turtle.Pen()
noise = "高科技刚刚i给" screen = turtle.Screen()
key ="123456789" #answer = screen.textinput("tiltle","提问")
message = "诺依,周末一起去看动漫展吧!" screen.bgcolor("blue")
text ="" pen.pencolor("yellow")
for i in message: pen.pensize(2)
str1 = i #诺依 pen.forward(200)
str2 = random.choice(key) #5 6 pen.circle(90)
str3 = random.choice(key) #3 5 pen.right(30)
text = text+str1+str2+str3 #诺53 依65 pen.forward(72)
text = list(text) pen.left(32)
text.insert(random.randint(1,10),noise) pen.circle(42)
text = "".join(text) pen.right(24)
print(text) pen.circle(45)
\ No newline at end of file pen.left(32)
pen.left(54)
pen.left(32)
pen.right(56)
pen.left(31)
pen.left(63)
pen.right(42)
pen.left(54)
pen.fillcolor("red")
pen.begin_fill()
pen.end_fill()
pen.goto(0,0)
pen.penup()
pen.pendown()
pen.write("1\n 2",font=("宋体",20,"normal"))
pen.left(45)
pen.right(45)
turtle.done()
pen.lift
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