Commit fa21543b by BellCodeEditor

auto save

parent 9c4fa246
Showing with 44 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.speed(1000)
pen.hideturtle()
screen.bgcolor('black')
i=0
while i<135:
pen.pencolor('blue')
pen.penup()
pen.goto(0,0)
pen.forward(200)
pen.pendown()
pen.circle(100)
pen.left(2)
i+=1
turtle.done()
\ No newline at end of file
scores={'一':76,'二':94,'三':95}
def get_average(scores):
sum_score = 0
for subject, score in scores.items():
sum_score += score
print('现在的总分是%d'%sum_score)
ave_score = sum_score/len(scores)
print('平均分是%d'%ave_score)
get_average(scores)
\ No newline at end of file
# 假期到了,诺依想出去玩,但不知道有没有飞机直达那里, # 假期到了,诺依想出去玩,但不知道有没有飞机直达那里,
# 悟空做了个小程序帮助诺依,然而代码出现了3处错误。 # 悟空做了个小程序帮助诺依,然而代码出现了3处错误。
# 请你找出来,并运行~ # 请你找出来,并运行~
......
stonenumber=4
if stonenumber >=4:
print('经济领先,稳了!')
elif 1<=stonenumber<=3:
print('八嘎,快死了,买反甲!')
else:
print('嘤嘤嘤,大意了,兄弟们投吧!bi~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
\ No newline at end of file
city = ['New York','Luoyang','','洛杉矶','芝加哥','旧金山']
area=input('Where are you go?')
if area in city:
print('You can go there by plane.')
else:
print('There not have the city.')
\ 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