Commit ac3d3b21 by BellCodeEditor

save project

parent f35d3022
Showing with 24 additions and 19 deletions
username="dragon"
password="54088"
user=input("请输入用户名")
psw=input("请输入密码")
if username==user and password==psw:
print("恭喜你,输对了")
else:
print("恭喜你,输错了")
import random username="24520"
player=input("请出拳:石头/剪刀/布")# 玩家出拳 password="54188"
print("玩家出拳:"+player) while True:
w=["石头","剪刀","布"] user=input("请输入用户名:")
q=random.choice(w) psw=input("请输入密码:")
print("机器人出拳"+q) if user==username and psw==password:
if print in w: print("对了")
print("输入正确") break
if player==q: else:
print("平局") print("错了")
elif player=="石头"and q=="剪刀": print("登录成功")
print("玩家赢") \ No newline at end of file
elif player=="布"and q=="石头":
print("玩家赢")
elif player=="剪刀"and q=="布":
print("玩家赢")
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