Commit 732e0732 by BellCodeEditor

save project

parent 0173b614
Showing with 10 additions and 2 deletions
......@@ -5,4 +5,12 @@ print("我:"+d)
import random
list=["石头","剪刀","布"]
c=random.choice(list)
print(c)
\ No newline at end of file
print(c)
if d==c:
print("平局")
elif (d=="石头"and c=="剪刀")or(d=="剪刀"and c=="布")or(d=="布"and c=="石头"):
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