Commit a0525204 by BellCodeEditor

save project

parent fcde6136
Showing with 8 additions and 2 deletions
......@@ -4,4 +4,10 @@ print("玩家出拳:"+m)
import random
l=["石","布","刀"]
c=random.choice(l)
print("我出拳:"+c)
\ No newline at end of file
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