Commit 3612688d by BellCodeEditor

save project

parent 199167af
Showing with 9 additions and 8 deletions
...@@ -4,14 +4,15 @@ import random ...@@ -4,14 +4,15 @@ import random
l=["1","2","3"] l=["1","2","3"]
a=random.choice(l) a=random.choice(l)
print("计算"+a) print("计算"+a)
if p==a: if p in a:
print("平") if p==a:
else: print("平")
if ("p==1"and"a==2") or ("p==2"and"a==3") or ("p==3"and"a==1"):
print("赢")
else: else:
print("输") if ("p==1"and"a==2") or ("p==2"and"a==3") or ("p==3"and"a==1"):
print("赢")
else:
print("输")
else:
print("你错了")
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