Commit c2017a11 by BellCodeEditor

save project

parent 1968a874
Showing with 8 additions and 2 deletions
......@@ -4,4 +4,10 @@ print("玩家出拳"+a)
import random
List=["石头","剪刀","布" ]
letter=random.choice(List)
print(letter)
\ No newline at end of file
print(letter)
if a==letter:
print("平局")
elif (a=="剪刀" and letter=="布")or (a=="布" and letter=="石头") or (a=="石头" and letter=="布"):
print("you win")
else:
print("you lose")
\ 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