Commit b07c2450 by BellCodeEditor

save project

parent db9d95b2
Showing with 16 additions and 4 deletions
# 玩家出拳
name=input("出什么:")
print(name)
#思路知道,代码不会
\ No newline at end of file
name=input("出什么(石头/剪刀/布):")
list=["石头","布","剪刀"]
import random
computer=random.choice(list)
print(computer)
if computer==name:
print("平局")
elif name=="布" and computer=="石头":
print("你赢了")
elif name=="剪刀" and computer=="布":
print("你赢了")
elif name=="石头" and computer=="剪刀":
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