Commit 16007d3e by BellCodeEditor

save project

parent 7bf1268b
Showing with 7 additions and 0 deletions
...@@ -4,3 +4,10 @@ print(name) ...@@ -4,3 +4,10 @@ print(name)
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
computer=random computer=random
print(computer) print(computer)
if name==a:
print("平局")
elif name==("石头"and computer=="剪刀") or (name=="剪刀"and computer==):
print("垃圾")
else:
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