Commit a7ac3f7d by BellCodeEditor

save project

parent 839ca7cb
Showing with 8 additions and 4 deletions
...@@ -5,11 +5,14 @@ print(ssssss) ...@@ -5,11 +5,14 @@ print(ssssss)
aaaaaaa=["石头","剪刀","布"] aaaaaaa=["石头","剪刀","布"]
s_q=random.choice(aaaaaaa) s_q=random.choice(aaaaaaa)
print(s_q) print(s_q)
if ssssss==s_q: if ssssss==aaaaaaa:
if ssssss==s_q:
print("平局") print("平局")
elif ssssss=="剪刀"and s_q=="布": elif ssssss=="剪刀"and s_q=="布":
print("玩家赢") print("玩家赢")
elif ssssss=="石头"and s_q=="剪刀": elif ssssss=="石头"and s_q=="剪刀":
print("玩家赢") print("玩家赢")
else ssssss=="布" and s_q=="石头": elif ssssss=="布" and s_q=="石头":
print("玩家赢") 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