Commit f0d0aa3e by BellCodeEditor

save project

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