Commit ac75a776 by BellCodeEditor

save project

parent 43adac85
Showing with 6 additions and 3 deletions
......@@ -4,11 +4,14 @@ import random
list=["石头""剪子""布"]
sb=random.choice(list)
print(sb)
if name==sb:
if name in list:
if name==sb:
print("平局")
elif:()
elif:(name=="石头"and sb=="剪子")or(name=="剪子"and sb=="布")or(name=="布"and sb=="石头")
print("你赢了")
else
else
print("你输了")
else:
print(sb)
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