Commit f7d41aaf by BellCodeEditor

save project

parent 0c1c4d64
Showing with 14 additions and 8 deletions
......@@ -4,13 +4,19 @@ list=["石头","剪刀","布"]
import random
c=random.choice(list)
print("计算机"+c)
if p=c:
if p==c:
print("平局")
else:
if c=="剪刀" and p=="石头":
elif c=="剪刀" and p=="石头":
print("恭喜你获胜")
elif c=="石头" and p=="布":
print("恭喜你获胜")
elif c=="剪刀" and p=="布":
print("恭喜你获胜")
else:
if c=="石头" and p="布":
else:
pass
\ No newline at end of file
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