Commit d74e0b80 by BellCodeEditor

save project

parent 188de3c8
Showing with 12 additions and 3 deletions
import random
# 玩家
chuquan = input("玩家出拳")
print("玩家出拳" + chuquan)
\ No newline at end of file
print("玩家出拳" + chuquan)
list = ["石头","剪刀","布"]
computer = random.choice(list)
if computer == chuquan:
print("平局")
elif computer == "石头" and chuquan == "布" or computer == "剪刀" and chuquan == "石头" or computer == "布" and chuquan == "剪刀":
print("you win!")
else:
print("you lose!")
\ 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