Commit d3fc1f90 by BellCodeEditor

save project

parent c0b5d117
Showing with 12 additions and 0 deletions
player=input("请出(石头/剪刀/布")
print("我出"+player)
import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print("电脑出拳"+computer)
if list==player:
print("平局")
elif list=="石头" and player=="布" or list=="剪刀" and player=="石头" or list=="布" and player=="剪刀"
print("你输了")
elif list=="布" and player=="石头" or list=="石头" and player=="剪刀" or list=="剪刀" and player=="布"
\ 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