Commit a0525204 by BellCodeEditor

save project

parent fcde6136
Showing with 7 additions and 0 deletions
...@@ -5,3 +5,9 @@ import random ...@@ -5,3 +5,9 @@ import random
l=["石","布","刀"] l=["石","布","刀"]
c=random.choice(l) c=random.choice(l)
print("我出拳:"+c) print("我出拳:"+c)
if m==c:
print("平")
elif (m=="石"and c=="刀") or (m=="刀"and c=="布") or (m=="布"and c=="石"):
print('你赢了')
else:
print('你s了')
\ 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