Commit 68f3b179 by BellCodeEditor

save project

parent 1f5209fd
Showing with 5 additions and 2 deletions
...@@ -4,4 +4,8 @@ gn=["石头","剪刀","布"] ...@@ -4,4 +4,8 @@ gn=["石头","剪刀","布"]
print("出的拳是:"+a) print("出的拳是:"+a)
b=random.choice(gn) b=random.choice(gn)
print("计算机出拳: "+b) print("计算机出拳: "+b)
if if player==b:
\ No newline at end of file print("平局")
elif (player=="石头" and b=="剪刀") or (player=="剪刀" and b=="布") or ():
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