Commit af38989f by BellCodeEditor

save project

parent 2c992690
Showing with 82 additions and 17 deletions
bros=["","",""]
bro1=[]
bro2=[]
bro3=[]
for i in range(len(bros))
print(bros[i])
print[0,len(bros),1]
name=input("你叫什么")
power=int(input("你的臂力值大小是多少"))
hero=['温杰渊',-10000000000000000000,'的',50,'就',90]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero[-6:])
i=3
zh="2781905098"
mm="20080515wjy"
while True:
if i >0:
a=input("请输入账号")
b=input("请输入密码")
i-=1
if a!=zh:
print("账号输入错误")
print("您还有"+str(i)+"机会")
continue
if b!=mm:
print("密码输入错误")
print("您还有"+str(i)+"机会")
if a==zh and b==mm:
print("登陆成功")
break
print("账号密码输入错误,请重新输入")
print("您还有"+str(i)+"机会")
else:
print("您的账号已被锁定")
exit()
print("欢迎来到哔哩哔哩")
player=input("请出拳:石头/剪刀/布") import turtle
print("玩家出拳:"+player) pen=turtle.Pen()
import random pen.penup()
list=["石头","剪刀","布"] pen.goto(100,0)
computer=random.choice(list) pen.write("谁看谁傻子\n你是",font=("Times",30,"normal"))
print("机器人出拳:",computer) pen.hideturtle()
if player in list: screen=turtle.Screen()
if player==computer: screen.bgcolor("red")
print("平局") pen1=turtle.Pen()
elif (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"): pen1.pensize(5)
print("恭喜,你赢了") pen1.pencolor("black")
else: pen1.fillcolor("green")
print("很遗憾,你输了") pen1.begin_fill()
print("输入错误") pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.end_fill()
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle import turtle
pen1=turtle.Pen()
pen1.fillcolor("pink")
pen1.begin_fill()
pen1.left(42)
pen1.forward(112)
pen1.circle(50,218)
pen1.right(160)
pen1.circle(50,218)
pen1.forward(112)
pen1.end_fill()
pen=turtle.Pen() pen=turtle.Pen()
pen.write("老母猪,你\n家八戒生了",font=("Times",30,"normal")) pen.penup()
pen.goto(-40,60)
pen.pendown()
pen.write("老母猪,你\n家八戒生了",font=("Times",15,"normal"))
pen1.hideturtle()
pen.hideturtle()
turtle.done() 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