Commit dee90d0e by BellCodeEditor

save project

parent 1e25919f
Showing with 8 additions and 2 deletions
...@@ -5,4 +5,10 @@ print("玩家出"+qo) ...@@ -5,4 +5,10 @@ print("玩家出"+qo)
import random import random
li=["石头","剪刀","布"] li=["石头","剪刀","布"]
ia=random.choice(li) ia=random.choice(li)
print(ia) print(ia)
\ No newline at end of file if qo==ia
print("平局")
elif (qo=="石头"and ia=="剪刀")or(qo=="剪刀"and ia=="布")or(qo=="布"and ia=="石头")
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