Commit 7a6132aa by BellCodeEditor

save project

parent 89d3ca46
Showing with 7 additions and 16 deletions
import random
print("你输定了")
print("为什么")
print("没有为什么")
while True :
wj = input("你出什么?(石头/剪刀/布)")
print("玩家出"+wj)
list = ["石头","剪刀","布",]
s = random.choice(list)
print("人机出," + s)
if wj == s:
print("平局")
elif (wj == "石头" and s == "剪刀") or (wj == "布" and s == "石头" ) or (wj == "剪刀" and s == "布") :
print("你赢了")
else(wj == "石头" and s == "布")or (wj == "布" and s == "剪刀")or(wj == "剪刀" and s == "石头"):
print("你输了")
username = "python"
userpassword = "1234567890"
a = input("账号")
b = input("密码")
if a == username and b = username
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