Commit 1bf90069 by BellCodeEditor

save project

parent d74fca9f
Showing with 8 additions and 6 deletions
...@@ -4,10 +4,12 @@ print("玩家输入:"+wj) ...@@ -4,10 +4,12 @@ print("玩家输入:"+wj)
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
jqr=random.choice(list) jqr=random.choice(list)
print("机器人输入:"+jqr) print("机器人输入:"+jqr)
if wj == jqr: if wj in list:
print("平局") if wj == jqr:
elif (wj=="石头"and jqr=="剪刀")or(wj=="剪刀"and jqr=="布")or(wj=="布"and jqr=="石头"): print("平局")
print("you win.") elif (wj=="石头"and jqr=="剪刀")or(wj=="剪刀"and jqr=="布")or(wj=="布"and jqr=="石头"):
print("you win.")
else:
print("his win.")
else: else:
print("his win.") print("除了")
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