Commit 49d9da44 by BellCodeEditor

auto save

parent 2652f537
Showing with 43 additions and 0 deletions
class Person():
def __init__ (self,name,gender,age,birth):
self.name=name
self.gender=gender
self.age=age
self.birth=birth
def speak():
print("我叫",self.name)
print("我今年",self.age)
print("我出生于",self.birth)
class Cat:
def eat(self,name):
self.name=name
print(self.name+"喜欢吃榴莲")
sb=Cat()
sb.eat("bs")
class Zfx():
def __init__(self,d):
self.d=d
def C(self):
print(d*4)
sb=Zfx(4)
sb.C
\ No newline at end of file
import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
# 创建一个窗口
guvvj=pygame.display.set_mode((660,440))
while True:
\ No newline at end of file
#letter =('a','b',['A','B'])
#letter[2][0] = 'x'
#letter[2][1]= 'y'
#print(letter)
student1 = ('sy','yy',['yp',['zp','zf']])
#student1[2][0] = 'a'
print(student1[2][1][0])
\ 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