Commit c4084ce6 by BellCodeEditor

save project

parent dc9f44d9
Showing with 8 additions and 2 deletions
......@@ -3,4 +3,10 @@ print("你出:"+a)
import random
a=["石头","剪刀","布"]
o=random.choice(a)
print("机器人出:"+o)
\ No newline at end of file
print("机器人出:"+o)
if a==o:
print("平局")
elif a=="石头" and o=="剪刀" or a=="剪刀" and o=="布" or a=="布" and o=="石头":
print("你赢了")
else:
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