Commit c067f86c by BellCodeEditor

save project

parent ed1866f0
Showing with 911 additions and 0 deletions
...@@ -4,6 +4,917 @@ import random ...@@ -4,6 +4,917 @@ import random
ABC=["石头","剪刀","布"] ABC=["石头","剪刀","布"]
wc=random.choice(ABC) wc=random.choice(ABC)
print("电脑出的:"+wc) print("电脑出的:"+wc)
if zmn==wc:
print("平局")
elif zmn=="石头" and wc=="剪刀":
print("你赢了")
elif zmn=="剪刀" and wc=="布":
print("你赢了")
elif zmn=="布" and wc=="石头":
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