Commit 27b3dbaf by BellCodeEditor

save project

parent f027da2f
Showing with 6 additions and 3 deletions
...@@ -3,5 +3,9 @@ a=input("begin") ...@@ -3,5 +3,9 @@ a=input("begin")
print("我出的拳"+a) print("我出的拳"+a)
import random import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
a=random.choice(list) b=random.choice(list)
print(a) print(b)
\ No newline at end of file if a==b:
print("平局")
eilf (a=="石头" and b=="剪刀")or(a=="布" and b=="石头") or(a=="剪刀" and b=="布"):
print("I am win")
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