Commit 68a4ee15 by BellCodeEditor

save project

parent 819af032
Showing with 11 additions and 1 deletions
......@@ -2,5 +2,14 @@ import random
sb=input("你要出啥:")
print("van家出了"+sb)
list=["石头", "剪刀", "布"]
xb = list[random(0,2)]
xb = random.choice(list)
print("人工智障的电脑出" + xb)
if sb in list:
if sb==xb:
print("平局")
elif (sb=="拳头" and xb == "剪刀") or(sb=="布" and xb == "石头") or(sb=="剪刀" and xb == "布") :
print("van家赢了,computer人工智障")
else:
print("computer人工智障赢了")
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