Commit 80a2a2d9 by BellCodeEditor

auto save

parent 60d3511f
Showing with 29 additions and 0 deletions
import turtle
pen=turtlez
import os
import turtle
pen=turtle.Pen()
cls=os.system("cls")
turtle.Screen().bgcolor("Green")
people=turtle.Screen().textinput("Put your name?","Name")
power=turtle.Screen().textinput("how many power do you?","Power")
hero=['gg',36,'hh',69,'44',83,'uu',91,'jj',100]
for i in range(len(hero)):
if i%2==1:
if int(hero[i])>=int(power):
hero.insert(i-1,people)
hero.insert(i,power)
break
result=hero[-6:]
print(result)
pen.pensize(2)
pen.pencolor("red")
pen.write("你的臂力排名:",align="left",font=("Times",20,"normal"))
pen.goto(-100,-99 )
pen.write(str(result),font=("Times",20,"normal"))
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