Commit feb8fc44 by BellCodeEditor

save project

parent b29a00d8
Showing with 5 additions and 5 deletions
......@@ -6,11 +6,11 @@ diannao=random.choice(list) #获取列表里的随机值
print("电脑出拳:"+diannao) #控制台打印电脑结果
if wanjia==diannao:
print("结果为:平局!!!")
elif wanjia=="剪刀"and diannao=="布"
elif wanjia=="剪刀" and diannao=="布":
print("恭喜你赢了!!!")
elif wanjia=="石头"and diannao=="剪刀":
elif wanjia=="石头" and diannao=="剪刀":
print("恭喜你赢了!!!")
elif wanjia=="布"and diannao=="石头":
elif wanjia=="布" and diannao=="石头":
print("恭喜你赢了!!!")
else:
print("")
\ 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