Commit 5a11db27 by BellCodeEditor

save project

parent 3f4fd9a4
Showing with 6 additions and 19 deletions
...@@ -7,25 +7,12 @@ list =["石头","剪刀","布"] ...@@ -7,25 +7,12 @@ list =["石头","剪刀","布"]
coco=random.choice(list) coco=random.choice(list)
print(coco) print(coco)
if a==coco:
print("平局")
elif (a=="石头" and coco=="剪刀") or (a=="剪刀" and coco=="布") or (a=="布" and coco=="剪刀")
print("你赢了")
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