Commit 37b1ff98 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 17 additions and 0 deletions
# 玩家出拳
import random
m=input("chuquan(s/j/b)")
print("player use:"+m)
list=["s","j","b"]
if m in list:
c=random.choice(list)
print("computer use:"+c)
if (c==m):
print("ping ju")
elif (c=="s" and m=="j") or (c=="j" and m=="b") or (c=="b" and m=="s"):
print("computer win")
else:
print("piayer win")
else:
print("error")
\ 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