Commit 223f02ca by BellCodeEditor

auto save

parent c0b5d117
Showing with 20 additions and 0 deletions
name=input("请输入您的大名")
print("我的名字叫"+name)
\ No newline at end of file
import random
player=input("请问您出什么石头/剪刀/布")
print("我出:"+player)
list=["石头","剪头","布"]
computer=random.choice(list)
print("系统出:"+player1)
if player in list:
if player==player1:
print("平局")
elif (player=="石头" and player1=="剪刀") or (player=="剪刀" and player1=="布") or (player=="布" and player1=="石头" ):
print("您赢了")
else:
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