Commit 3612688d by BellCodeEditor

save project

parent 199167af
Showing with 5 additions and 4 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:
if p==a:
print("平") print("平")
else: else:
if ("p==1"and"a==2") or ("p==2"and"a==3") or ("p==3"and"a==1"): if ("p==1"and"a==2") or ("p==2"and"a==3") or ("p==3"and"a==1"):
print("赢") print("赢")
else: else:
print("输") 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