Commit bb430e87 by BellCodeEditor

save project

parent 3f937527
Showing with 13 additions and 3 deletions
input("剪刀/石头/布")
import random
input("剪刀/石头/布")
y = ["剪刀","石头","布"]
h=random.choice(y)
print(h)
\ No newline at end of file
print(h)
if y==h
print("平局")
elif y=="剪刀" and h=="布"
print("你赢了")
elif y=="石头" and h=="剪刀"
print("你赢了")
elif y=="布" and h=="石头"
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