Commit 9866aa3d by BellCodeEditor

save project

parent 5d868cb1
Showing with 9 additions and 3 deletions
...@@ -4,8 +4,14 @@ print("玩家出拳:"+player) ...@@ -4,8 +4,14 @@ print("玩家出拳:"+player)
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
comptur=random.choice(list) comptur=random.choice(list)
print("电脑出拳:"+comptur) print("电脑出拳:"+comptur)
if player==comptur:
print("平局!!!")
elif player=="石头" and comptur=="剪刀":
print("你赢了,你真厉害")
elif player=="" and comptur==""
print("你赢了,你真厉害")
elif player=="" and comptur==""
print("你赢了,你真厉害")
elif
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