Commit 9ff0b085 by BellCodeEditor

save project

parent 4b20a6f1
Showing with 11 additions and 3 deletions
...@@ -3,5 +3,14 @@ a=input("出拳") ...@@ -3,5 +3,14 @@ a=input("出拳")
print(a+"jhs") print(a+"jhs")
import random import random
list=["剪刀","石头","布"] list=["剪刀","石头","布"]
a=random.choice(list) y=random.choice(list)
print(a) print(a)
\ No newline at end of file if a==y:
print("平局")
elif "剪刀"=="布"or"石头"=="剪刀"or"布"=="石头":
print("你赢了")
else "剪刀"=="石头"or"石头"=="布"or"布"=="剪刀":
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