Commit 2108a450 by BellCodeEditor

save project

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