Commit 548c62be by BellCodeEditor

save project

parent 436af23d
Showing with 2 additions and 2 deletions
...@@ -6,7 +6,7 @@ l=random.choice(list) ...@@ -6,7 +6,7 @@ l=random.choice(list)
print("电脑出拳"+l) print("电脑出拳"+l)
if i==l: if i==l:
print("平局") print("平局")
elif(i=="石头"andl=="剪刀") or (i=="剪刀"andl=="布") or (i=="布"and l=="石头") elif(i=="石头" and l=="剪刀") or (i=="剪刀" and l=="布") or (i=="布" and l=="石头")
print("赢了") print("赢了")
else: else:
print("输了") 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