Commit f21e74a0 by BellCodeEditor

save project

parent 2203c625
Showing with 10 additions and 2 deletions
import random import random
player=input("请出拳:")
list_quan=["石头","剪刀","布"] list_quan=["石头","剪刀","布"]
computer=random.choice(list_quan) computer=random.choice(list_quan)
print("计算机出拳"+computer) print("玩家出拳"+player)
\ No newline at end of file print("计算机出拳"+computer)
if (player=="石头" and computer=="剪刀") and (player=="剪刀" and computer=="布") and (player=="布" and computer=="石头")
print("1")
elif player==computer:
print("3")
else:
print("2")
\ 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