Commit f22a336f by BellCodeEditor

save project

parent 102bd13d
Showing with 11 additions and 1 deletions
......@@ -4,5 +4,14 @@ import random
list=["石头","剪刀","布"]
classroom=random.choice(list)
print("计算机出拳;"+classroom)
if curry==classroom:
print("平局")
elif curry=="石头" and classroom=="剪刀":
print("恭喜,你赢了")
elif curry=="布" and classroom=="石头":
print("恭喜,你赢了")
elif curry=="剪刀" and classroom=="布":
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