Commit de40d669 by BellCodeEditor

save project

parent 6e12f7cc
Showing with 7 additions and 4 deletions
...@@ -4,10 +4,12 @@ import random ...@@ -4,10 +4,12 @@ import random
sb=["石头","剪刀","布"] sb=["石头","剪刀","布"]
asbf=random.choice(sb) asbf=random.choice(sb)
print("电脑的出拳:"+asbf) print("电脑的出拳:"+asbf)
if qaz in asbf:
if me == asbf: if me == asbf:
print("平局") print("平局")
elif (me=="剪刀" and asbf=="布") or (me=="石头" and asbf=="剪刀") or (me=="布" and asbf=="石头"): elif (me=="剪刀" and asbf=="布") or (me=="石头" and asbf=="剪刀") or (me=="布" and asbf=="石头"):
print("你赢了") print("你赢了")
else: else:
print("你输了") 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