Commit bd96710f by BellCodeEditor

save project

parent a34c8651
Showing with 6 additions and 0 deletions
...@@ -4,3 +4,8 @@ import random ...@@ -4,3 +4,8 @@ import random
dl=["石头","剪刀","布"] dl=["石头","剪刀","布"]
dl=random.choice(dl) dl=random.choice(dl)
print("电脑,"+dl) print("电脑,"+dl)
print("电脑"+d)
if p==d:
print("平局")
elif "p=="" and d=="石头" or p=="石头" and d=="剪刀" or "p=="剪刀" and d=="布"
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