Commit 70187df7 by BellCodeEditor

save project

parent 71670a71
Showing with 17 additions and 7 deletions
# 玩家出拳 # 玩家出拳
p = input("妈的,猜拳还怎么慢,快出") while True:
print("出的啥呀?"+p) p = input("妈的,猜拳还怎么慢,快出")
import random as r print("出的啥呀?"+p)
list=["石头啊","剪刀呦","布欸"] import random as r
computer=r.choice(list) list=["石头啊","剪刀呦","布欸"]
print("该我了"+computer) c=r.choice(list)
\ No newline at end of file print("该我了"+c)
if p == ai:
print("小伙子不错,平局")
elif p == "石头" c == "剪刀"
print("woc,你赢了")
elif p == "布" c == "石头"
print("woc,你赢了")
elif p == "剪刀" c == "布"
print("woc,你赢了")
else:
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