Commit f398b28c by BellCodeEditor

save project

parent 498a7751
Showing with 23 additions and 19 deletions
import turtle
pen=turtle.Pen()
a=input("请出拳(石头、剪刀、布):")
print("玩家出"+a)
import random
b=["石头","剪刀","布"]
c=random.choice(b)
print("计算机出拳"+c)
if a==c:
print("平局")
elif (a=="石头" and c=="剪刀") or (a=="布" and c=="石头") or (a=="剪刀" and c=="布"):
print("你赢了")
else:
print("电脑赢了")
i=2
userpassword="123456"
username="python"
while True:
if i>0:
name=input("请输入用户名:")
password=input("请输入密码:")
i-=1
if name==username and password==userpassword:
print("登录成功")
if name !=username:
print("用户名错误,请重试")
continue
if password !=serpassword:
print("密码错误,请重试")
else:
print("输入错误2次,你已被锁定")
exit()
print("欢迎来到此地")
......
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