Commit e35c6e4e by BellCodeEditor

save project

parent 4f07e0d8
Showing with 9 additions and 9 deletions
# 玩家出拳 # 玩家出拳
import random import random
t=input("chuquan(s/j/b)") m=input("chuquan(s/j/b)")
print("player use:"+t) print("player use:"+m)
list=["s","j","b"] list=["s","j","b"]
m=random.choice(list) c=random.choice(list)
print("computer use:"+m) print("computer use:"+c)
if (m==t): if (c==m):
print("ping ju") print("ping ju")
elif (m=="s" and t=="j") or (m=="j" or t=="b") or (m=="b" or t=="s"): elif (c=="s" and m=="j") or (c=="j" and m=="b") or (c=="b" and m=="s"):
print("piayer win") print("computer win")
else: else:
print("computer win") print("piayer win")
\ No newline at end of file \ 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