Commit a47fead7 by BellCodeEditor

save project

parent 6fb898ef
Showing with 11 additions and 4 deletions
import random
a=input("玩家出拳(石/布/剪):")
print("玩家出拳:"+player)
import random
random choice("石","布","布")
input("a")
\ No newline at end of file
random.choice["石","剪","布"]
a=random.choice(sb)
print("计算机出拳"+a)
if player == a
print("平局")
elif (wanjia=="石" and a=="剪")or(wanjia=="剪" and a=="布")or(wanjia=="布" and a=="石")
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