Commit 1c80e383 by BellCodeEditor

save project

parent 347715d6
Showing with 7 additions and 6 deletions
......@@ -4,13 +4,14 @@ print("玩家出去:"+player)
list=["石头","剪刀","布"]
compurter=random.choice(list)
print("电脑出去:"+compurter)
if player==compurter:
if player in list:
if player==compurter:
print("平局")
elif player=="石头"and compurter=="剪刀"
elif player=="石头"and compurter=="剪刀"
print("赢")
elif player=="布" and compurter=="石头"
elif player=="布" and compurter=="石头"
print("赢")
elif player=="剪刀" and compurter=="布":
elif player=="剪刀" and compurter=="布":
print("赢")
else:
print("输")
\ No newline at end of file
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