Commit 7fa09f77 by BellCodeEditor

save project

parent a8fe21e7
Showing with 4 additions and 4 deletions
...@@ -5,8 +5,8 @@ list=["石头","剪刀","布"] ...@@ -5,8 +5,8 @@ list=["石头","剪刀","布"]
dn=random.choice(list) dn=random.choice(list)
print("电脑出:"+dn) print("电脑出:"+dn)
if dn==player: if dn==player:
print("平局") print("电脑:你个人机,和人机打都打平局")
elif (player=="石头" and dn=="剪刀") or (player=="剪刀" and dn=="布") or (player=="布" and dn=="石头"): elif (player=="石头" and dn=="剪刀") or (player=="剪刀" and dn=="布") or (player=="布" and dn=="石头"):
print("是在下输了") print("电脑:是在下输了")
else: else:
print("你太fw了,打不过我") print("电脑:你太fw了,打不过我")
\ No newline at end of file \ 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