Commit bd4ef793 by BellCodeEditor

save project

parent abca9295
Showing with 17 additions and 3 deletions
player=input("请(剪/石/布):") player = input("请(石/剪/布):")
print("玩出"+player) print("玩出:"+player)
\ No newline at end of file import random
list=["石","剪","布"]
computer=random.choice(list)
print("机出"+computer)
if player==computer:
print("平")
elif player=="石"and computer=="剪":
print("你赢")
elif player=="剪"and computer=="布":
print("你赢")
elif player=="布"and computer=="石":
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