Commit 3f03b2b3 by BellCodeEditor

save project

parent 23dfff73
Showing with 14 additions and 0 deletions
import random
p=input("请出拳(石头,剪刀,布):")
l=["石头","剪刀","布"]
c=random.choice(l)
if p=="石头" or p=="剪刀" or p=="布":
print("玩家1出了",p)
print("玩家2出了",c)
else:
print("Error!,错误!")
print("Please check your input!,请检查你的输入!")
exit()
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