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
noise = "高科技刚刚i给"
key ="123456789"
message = "诺依,周末一起去看动漫展吧!"
text =""
for i in message:
str1 = i #诺依
str2 = random.choice(key) #5 6
str3 = random.choice(key) #3 5
text = text+str1+str2+str3 #诺53 依65
text = list(text)
text.insert(random.randint(1,10),noise)
text = "".join(text)
print(text)
\ No newline at end of file
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
#answer = screen.textinput("tiltle","提问")
screen.bgcolor("blue")
pen.pencolor("yellow")
pen.pensize(2)
pen.forward(200)
pen.circle(90)
pen.right(30)
pen.forward(72)
pen.left(32)
pen.circle(42)
pen.right(24)
pen.circle(45)
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