Commit 0cccb2de by BellCodeEditor

save project

parent 3f4b3d6b
Showing with 10 additions and 0 deletions
...@@ -3,3 +3,12 @@ print("玩家出"+yydsb) ...@@ -3,3 +3,12 @@ print("玩家出"+yydsb)
import random import random
bb=("石头","剪刀","布") bb=("石头","剪刀","布")
aa=random.choice(bb) aa=random.choice(bb)
print("计算机出拳:"+aa)
if yydsb==aa:
print("平局")
elif aa=="石头" and aa=="剪刀":
print("你赢了")
elif aa=="剪刀" and aa=="布"
print("你赢了")
elif aa=="布" and aa=="石头"
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