Commit 347715d6 by BellCodeEditor

save project

parent 5005375b
Showing with 12 additions and 2 deletions
......@@ -3,4 +3,14 @@ player=input("请出去(石头/剪刀/布):")
print("玩家出去:"+player)
list=["石头","剪刀","布"]
compurter=random.choice(list)
print("电脑出去:"+compurter)
\ No newline at end of file
print("电脑出去:"+compurter)
if player==compurter:
print("平局")
elif player=="石头"and compurter=="剪刀"
print("赢")
elif player=="布" and compurter=="石头"
print("赢")
elif player=="剪刀" and compurter=="布":
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