Commit 70dfff1f by BellCodeEditor

save project

parent 08e09c47
Showing with 13 additions and 3 deletions
player=input()
player("出拳:"+player)
\ No newline at end of file
p=input()
player("出拳:"+player)
import random
d=['石头','剪刀','布']
d=random.choice(di)
player('电脑:'+di)
if p==d:
print("平局")
if p=='布' and d=="石头" or p=='石头' and d=='剪刀' or p=='剪刀' and d=='布':
print("你赢了")
if p=='布' and d=='剪刀' or p=='石头' and d=='布' or p=='剪刀' and d=='石头':
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