Commit 6812ebac by BellCodeEditor

save project

parent 2005d3e8
Showing with 27 additions and 4 deletions
palyer=input("请出拳:剪刀/石头/布)
name=input("请输入你的名字:") print("玩家出拳:"+player)
print(name+",你好啊") import ranndom
\ No newline at end of file list=["剪刀","石头",""]
computer=random.choice(list)
print("计算机出拳:"+computer)
if player==computer:
print("平局 ")
elif player=="石头"and computer=="剪刀":
print("player胜利")
elif player=="剪刀"and computer=="":
print("player胜利"
elif player==""and computer=="石头":
print("player胜利")
else:
print("computer胜利")
\ No newline at end of file
palyer=input("请出拳:剪刀/石头/布)
print("玩家出拳:"+player)
import ranndom
list=["剪刀","石头",""]
computer=random.choice(list)
print("计算机出拳:"+computer)
if player==computer:
print("平局 ")
elif player="石头"and computer=="剪刀"
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