Commit 22fe41d2 by BellCodeEditor

save project

parent 10394920
Showing with 2 additions and 1 deletions
......@@ -4,13 +4,14 @@
#print(博豪)
import random
a=["石头","剪刀","布"]
player=input(请输入你的出拳)
dn=random.choice(a)
print(dn)
if player in list:
if player==dn:
print("平局")
else(player=="石头"and dn=="剪刀") or (player=="剪刀"and dn=="布") or(player=="布"and dn=="石头")
print(获胜)
print("获胜")
else:
print("失败")
else:
......
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