Commit 6ffe5931 by BellCodeEditor

save project

parent ae6bfe3a
Showing with 7 additions and 1 deletions
if player==computer: player=input("请吃粑粑(石头/剪刀/布):")
print("玩家吃粑粑:"+player)
import random
list=["石头","剪刀","布"]
computer=random.cholce(list)
print("计算机吃粑粑:"+computer)
if player == computer:
print("平局") print("平局")
elif player=="石头"and computer=="剪刀": elif player=="石头"and computer=="剪刀":
print("恭喜,你吃到了奥利给") print("恭喜,你吃到了奥利给")
......
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