Commit 8061a5a9 by BellCodeEditor

save project

parent f6e3b7ce
Showing with 7 additions and 0 deletions
...@@ -6,6 +6,13 @@ print("出的是:",player) ...@@ -6,6 +6,13 @@ print("出的是:",player)
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
list1=r.choice(list1) list1=r.choice(list1)
print("出的是:",list1) print("出的是:",list1)
if player=list1
print("平局")
elif(player=="石头"and list1=="剪刀")or(player=="剪刀"and list1=="布")or(player=="布"and list1=="石头")
print("赢了")
else:
print("输了")
......
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