Commit 9c0385d7 by BellCodeEditor

save project

parent 535d76ed
Showing with 7 additions and 8 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) pen.write("aikun\n.",font=("Times",30,"normal")
pen.hideturtle()
len=60 len=60
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
......
...@@ -2,13 +2,14 @@ import turtle ...@@ -2,13 +2,14 @@ import turtle
pen = turtle.Pen() pen = turtle.Pen()
pen.write("2021年,因为欧洲疫情形势的混乱\n,迫切需要统一的整体,\n罗马重建,世界毒瘤美利坚对其进行武装干涉,\n我(一位将军)和朱元璋元帅发动了对美国的战争,\n以正义的角度“抗美援罗”。\n罗马第一位皇帝奥菲尔斯一世被称为“救世主”,\n来到被黑暗的病痛统治下的欧洲,\n给这篇土地带来了光明。\n第三次世界大战爆发,\n究竟是正义战胜\n",font=("Times",13,"normal")) pen.write("2021年,因为欧洲疫情形势的混乱\n,迫切需要统一的整体,\n罗马重建,世界毒瘤美利坚对其进行武装干涉,\n我(一位将军)和朱元璋元帅发动了对美国的战争,\n以正义的角度“抗美援罗”。\n罗马第一位皇帝奥菲尔斯一世被称为“救世主”,\n来到被黑暗的病痛统治下的欧洲,\n给这篇土地带来了光明。\n第三次世界大战爆发,\n究竟是正义战胜\n",font=("Times",13,"normal"))
pen1 = turtle.Pen() pen1 = turtle.Pen()
len=60
pen1.pencolor("green") pen1.pencolor("green")
pen1.pensize(5) pen1.pensize(5)
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len,180)
pen1.forward(100) pen1.forward(2*len)
turtle.done() turtle.done()
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