Commit 8e48e745 by BellCodeEditor

save project

parent 9479e5e2
Showing with 15 additions and 3 deletions
...@@ -4,6 +4,17 @@ import random ...@@ -4,6 +4,17 @@ import random
aa=["石头","剪刀","布"] aa=["石头","剪刀","布"]
lk=random.choice(aa) lk=random.choice(aa)
print("人工智障:"+ lk) print("人工智障:"+ lk)
if wwwwww==lk:
print("你们平局!")
elif wwwwww=="剪刀" and lk=="布":
print("恭喜你,你赢了!")
elif wwwwww=="布" and lk=="石头":
print("恭喜你,你赢了!")
elif wwwwww=="石头" and lk=="剪刀":
print("恭喜你,你赢了!")
elif wwwwww=="剪刀" and lk=="石头":
print("抱歉,你输了!")
elif wwwwww=="布" and lk=="剪刀":
print("抱歉,你输了!")
elif wwwwww=="石头" and lk=="布":
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