Commit e1f72e63 by BellCodeEditor

save project

parent 9a9a41a7
Showing with 11 additions and 3 deletions
p=input("请出拳:石、剪、布") p=input("请出拳:石、剪、布")
p("玩"+p) print("玩"+p)
import random import random
k=["石","剪","布"] k=["石","剪","布"]
w=random.choice(k) w=random.choice(k)
print(k) print(k)
\ No newline at end of file if p== c:
print("平局")
elif (p=="石" and c=="剪")or(p=="剪" and c=="布")or(p=="布" and c=="石"):
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