Commit f0d0aa3e by BellCodeEditor

save project

parent 0013210c
Showing with 9 additions and 8 deletions
import random class Dog:
a=input("玩家出拳?") def __init__(self,color,type,p):
print("玩家出的是"+a) self.anum = 4
b=["石头","剪刀","布"] self.type = type
c=random.choice(b) self.p = p
print("计算机出的是"+c) self.color = color
if (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"): def say_price(self):
player== print(p)
\ 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