Commit d3ab2b2d by BellCodeEditor

auto save

parent 4213e846
Showing with 12 additions and 9 deletions
import random
# 玩家出拳
player=input("请出拳(石头、剪刀、布:)")
print("玩家出得是:"+player)
#电脑出拳
list=["石头","剪刀","布"]
computer=random.choice(list)
print("电脑出得是"+computer)
list = ["石头","剪刀","布"]
computer = random.choice(list)
print("电脑是出:"+computer)
if (石头 and 剪刀) or ( and 石头) or (剪刀 and ):
pass
elif 这里算平局:
再来一次
if (player=="石头" and computer=="剪刀") or (player=="布" and computer=="石头") or (player=="剪刀" and computer=="布"):
print("哈哈哈,电脑真菜!")
elif player==computer:
print("可以再来一次")
else:
玩家输了,电脑赢了。
\ No newline at end of file
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