Commit 17a30a6e by BellCodeEditor

save project

parent 4cac003e
Showing with 13 additions and 3 deletions
neme=input("输入名字") import random
print(neme+"你好啊") player = input("请出拳(石头/剪刀/布):")
\ No newline at end of file print("玩家出拳:"+player)
alist = ["石头","剪刀","布"]
player1=random.choice(alist)
print("电脑出拳:"+player1)
if (player == "石头"and player1 == "剪刀")or(player == "剪刀"and player1 == "布")or(player == "布"and player1 == "石头"):
print("玩家胜利")
elif player==player1:
print("平局")
else:
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