Commit db14c415 by BellCodeEditor

save project

parent b4c23a4f
Showing with 6 additions and 0 deletions
...@@ -4,3 +4,8 @@ import random ...@@ -4,3 +4,8 @@ import random
list=["剪刀","石头","布"] list=["剪刀","石头","布"]
computr=random.choice(list) computr=random.choice(list)
print(computr) print(computr)
if abc ==computr:
print("平局")
elif (abc=="石头"and computr=="剪刀") or (abc=="剪刀"and computr=="布") or (abc=="布"and computr=="石头"):
print("恭喜,你赢了")
else,(很遗憾,你输了)
\ 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