Commit bf0552cb by BellCodeEditor

save project

parent 27e33f33
Showing with 11 additions and 10 deletions
...@@ -6,16 +6,17 @@ print(a) ...@@ -6,16 +6,17 @@ print(a)
d=["石头,剪刀,布"] d=["石头,剪刀,布"]
d=random.choice() d=random.choice()
print(d) print(d)
if a==d: if a in d :
print("平局") if a==d:
elif a=="石头" and d=="剪刀": print("平局")
print("你胜了") elif a=="石头" and d=="剪刀":
elif a=="剪刀" and d=="布": print("你胜了")
print("你胜了") elif a=="剪刀" and d=="布":
elif a=="布" and d=="石头": print("你胜了")
print("你胜了") elif a=="布" and d=="石头":
else: print("你胜了")
print("你胜了") else:
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