Commit e4208595 by BellCodeEditor

save project

parent 9ac95929
Showing with 24 additions and 34 deletions
import turtle
pen1=Pen.turtle()
screen=tuple.Screen()
pen1.speeol('fast')
pen1.hideturtle()
screen.bgcolor('black')
i=0
while i<135
pen.pencolor('pink')
pen1.penup()
pen1.goto(0,0)
pen1
def new_input():
total=[]
while True:
a=input('请输入')
if a=='q':
break
else:
try:
a=int(a)
except:
print('重新输入')
else:
total.append(a)
return total
def sum(money):
b=0
for i in money:
b=b+i
return b
c=new_input()
d=sum(c)
print(str(d)+'元')
# 下面的这段代码一共有5处错误,每一行都有一种典型的语法错误,请修改~
for i in range(1,8)
print'克洛诺斯将第' + str(i) + '个孩子吞进肚子里'
if i = 5:
break
print('第6个孩子宙斯逃过一劫。)
\ No newline at end of file
a={'数':85,'语':95,'外':96}
b={'数':99,'语':90,'外':81}
c={'数':94,'语':98,'外':87}
score={'s':a,'r':b,'w':c,}
while True:
name=input('请输入名字')
if name in score:
ui=score[name]
for s,b in ui.items():
print(s,b)
elif name=='q':
break
else:
print('上传中')
\ 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