Commit b53c48c3 by BellCodeEditor

save project

parent da5e12f5
Showing with 10 additions and 3 deletions
# 玩家出拳
ink=input("玩家请出拳(剪刀,石头,布):")
input("玩家出拳"+ink)
print("玩家出拳"+ink)
import random
list=["石头","剪刀","布"]
sb=random.choice(list)
print("电脑出拳"+sb)
\ No newline at end of file
print("电脑出拳:")
if ink==sb:
print("平局")
elif ink=="石头" and sb=="布" or ink=="剪刀" and sb=="石头" or ink=="布" and sb=="剪刀":
print("你输了")
else:
print("你赢了")
ink
\ 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