Commit 1978ed56 by BellCodeEditor

save project

parent 7a422b1f
Showing with 13 additions and 1 deletions
a=["语文","数学","英语","历史","地理"]
a.insert(0,"物理")
i=0
while i<len(a):
if a[i]=="英语":
print("英语的索引号是:",i)
i=i+1
\ No newline at end of file
year = int(input("请输入您的出生年份:"))
print("到了2030年,您的年龄是:", 2030-year)
\ No newline at end of file
...@@ -6,10 +6,11 @@ c=int(score.textinput("你要画多大的爱心?","请输入尺寸")) ...@@ -6,10 +6,11 @@ c=int(score.textinput("你要画多大的爱心?","请输入尺寸"))
bg=score.textinput("你要画布什么颜色?","请输入英文颜色") bg=score.textinput("你要画布什么颜色?","请输入英文颜色")
score.bgcolor(bg) score.bgcolor(bg)
pencolor=score.textinput("你要画笔颜色?","请输入英文颜色") pencolor=score.textinput("你要画笔颜色?","请输入英文颜色")
nr=score.textinput("你想对我说什么?","请输入内容")
pen.color(pencolor) pen.color(pencolor)
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("你好,\n诺伊,\n我给你背一首诗吧:春晓\n孟浩然\n春眠不觉晓\n处处闻啼鸟\n夜来风雨声\n花落知多少.",font=("Time",15,"normal")) pen.write(nr,font=("Time",15,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
......
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