Commit 1ad67f48 by BellCodeEditor

save project

parent 2973b5f9
Showing with 1 additions and 1 deletions
...@@ -7,7 +7,7 @@ sadf=random.choice(list) ...@@ -7,7 +7,7 @@ sadf=random.choice(list)
print("电脑出的是:"+sadf) print("电脑出的是:"+sadf)
if oi==sadf: if oi==sadf:
print("平局") print("平局")
elif (oi=="石头"and sadf=="剪刀")or(oi=="剪刀"and sadf=="布")or(oi=="布"and sadf=="石头") elif(oi=="石头"and sadf=="剪刀")or(oi=="剪刀"and sadf=="布")or(oi=="布"and sadf=="石头")
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