Commit d08f0d7d by BellCodeEditor

auto save

parent 26bbb99d
a =['香蕉','橘子','西瓜','橙子','柚子','火龙果','苹果','榴莲']
b = ['柚子',2,3,4,1,'橙子','哈密瓜',1,4,5,'西瓜','橘子']
c=b[5:7]
a.extend(c)
d=a[7:]
b.extend(d)
print(b)
cc
\ No newline at end of file
...@@ -7,7 +7,7 @@ class Block(pygame.sprite.Sprite): ...@@ -7,7 +7,7 @@ class Block(pygame.sprite.Sprite):
super().__init__() super().__init__()
self.image=random.choice([image1,image2,image3]) self.image=random.choice([image1,image2,image3])
self.rect=self.image.get_rect() self.rect=self.image.get_rect()
self.rect.x=1000 self.rect.x =1000
self.rect.y=500-self.rect.height self.rect.y=500-self.rect.height
pygame.init() # 初始化 pygame.init() # 初始化
# 创建一个窗口 # 创建一个窗口
......
tp=(3,6,9,11)
x=tp[2]
print(x)
\ 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