Commit ad141b75 by BellCodeEditor

save project

parent ae7d8e8a
Showing with 10 additions and 4 deletions
......@@ -2,6 +2,12 @@
player=input("玩家出拳石头/剪刀/布")
print("玩家出拳"+player)
#计算机出拳
import=random
list=[石头,剪刀,]
import=(randow choice(list))
\ No newline at end of file
import random
list=["石头","剪刀","布"]
random.choice(list)
if player==compute:
print("平局")
elif player=="石头"and compute=="剪刀" or player=="剪刀" and compute=="布" or player=="布"and compute=="石头":
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