Commit eb36d504 by BellCodeEditor

auto save

parent 5788172f
Showing with 35 additions and 22 deletions
score=input("请输入成绩:")
name=input("请输入姓名:")
print(name+"的英语成绩是"+score)
\ No newline at end of file
list=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"]
while True:
a=input("今天星期几呀?")
if a in list:
if a=="星期一":
print("今天学钢琴")
elif a=="星期三":
print("今天学编程")
elif a=="星期六":
print("今天学英语")
else:
print("今天学国学")
else:
print("输入错误")
\ No newline at end of file
import random
list=["ipad","笔记本电脑","华为手机","苹果手机"]
while True:
name=input("创造师你叫什么呀?")
a=random.choice(list)
print("恭喜你,幸运的创造师——"+name+",获得了"+a)
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()
import turtle
pen=turtle.Pen()
for i in range(6):
pen.left(60)
pen.forward(100)
pen.hideturtle()
turtle.done()
\ No newline at end of file
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