Commit c643eebd by BellCodeEditor

save project

parent 760792ee
Showing with 14 additions and 0 deletions
name=input("玩家请出拳:石头\剪刀\布")
print("玩家出:"+name)
list=["石头","剪刀","布"]
import random
nao=random.choic e(list)
print("计算机出:"+nao)
if name==nao:
print("平")
elif (name=="石头" and nao=="剪刀") or (name=="剪刀" and nao=="布") or (name=="布" and nao=="石头"):
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