Commit 6e4d0da8 by BellCodeEditor

save project

parent ae8155ca
Showing with 8 additions and 6 deletions
...@@ -5,9 +5,12 @@ import random ...@@ -5,9 +5,12 @@ import random
list=["鸡汤","穿山甲","双料特工"] list=["鸡汤","穿山甲","双料特工"]
崔逝员=random.choice(list) 崔逝员=random.choice(list)
print(崔逝员) print(崔逝员)
if player==崔逝员: if player in list:
print("平局") if player==崔逝员:
elif (player=="鸡汤" and 崔逝员=="穿山甲") or (player=="穿山甲" and 崔逝员=="双料特工") or (player=="双料特工" and 崔逝员=="鸡汤"): print("平局")
print("你喝了鸡汤") elif (player=="鸡汤" and 崔逝员=="穿山甲") or (player=="穿山甲" and 崔逝员=="双料特工") or (player=="双料特工" and 崔逝员=="鸡汤"):
print("你喝了鸡汤")
else:
print("你暴露了特工身份")
else: else:
print("你暴露了特工身份") 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